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

fix: add exception when generated thrift string exceeds maximum allowed package siz #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cawolf
Copy link
Contributor

@cawolf cawolf commented Feb 18, 2020

Hi,

when experimenting with very large traces, I encountered errors related to socket_sendto, which is fine:

socket_sendto(): unable to write to socket [90]: Message too long

However, there is a small window from 65000 bytes to 65507 bytes, where packages are created and sent by this library, but discarded of Jaeger, because not the complete thrift payload fit into one package.

This PR adds an exception to cover those edge cases and a test for AgentClient. Feel free to ask questions and provide feedback for improvements. :)

@jukylin
Copy link
Owner

jukylin commented Feb 22, 2020

How do you Got the error, I already check the size before send

@cawolf
Copy link
Contributor Author

cawolf commented Feb 22, 2020

Yes, I saw that. Is the test I wrote sufficient to explain the issue?

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

Successfully merging this pull request may close these issues.

2 participants