Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to send over 64KB for subsegment output #388

Open
feizhangyong opened this issue Jul 14, 2023 · 2 comments
Open

Failed to send over 64KB for subsegment output #388

feizhangyong opened this issue Jul 14, 2023 · 2 comments

Comments

@feizhangyong
Copy link

feizhangyong commented Jul 14, 2023

the current situation
① Create subsegment of insertKaisyuRenkeiToSeikyuIchiranyoDataWork
*Metadata size: 53688

②Using UDP Emitter,
If it exceeds 64KB, first send the child subsegment, then send the parent subsegment
Finally send the segment
➡When sending ① above, debug and check sendData of UDPEmitter,
data. length: 59590
The difference between them is about 6000. Why is there such a difference?

↑The above is the pattern normally sent


The attached image is a transmission failure pattern
※The difference is about 6000 bytes

image

@carolabadeer
Copy link

carolabadeer commented Jul 24, 2023

Hi @feizhangyong,
Can you please enable debug logging to see the value of the serialized subsegment mentioned above?

Some parts of the code snippets above are not visible, but I believe the first snippet of the generateMetadata method is only calculating the size of the metadata field of the subsegment. UDPEmitter sends the entire serialized subsegment data and also adds the PROTOCOL_HEADER and PROTOCOL_DELIMITER to the bytes being emitted.

@feizhangyong
Copy link
Author

@carolabadeer

thank you answer
I have confirmed the details of the subsegment, and show the image below


bytes in subsegment: 45826
① Metadata bytes: 40663
② Miscellaneous items, name, ID, etc. total less than 600 bytes

⇒ The question at the moment is what is the difference of 5000 bytes?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants