-
Notifications
You must be signed in to change notification settings - Fork 6
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
Why open a new connection for every message? #6
Comments
Because fruently does not send message with chunk option. ref: https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#response |
Thanks for the response. I was prompted to look into this due to very high CPU usage by The part you mentioned is for the server side of the protocol, right? It seems odd to me to close the client connection after every message given the costs associated with it. There is also mention of keep-alive in the protocol docs. Note: not arguing with the protocol, just trying to figure out if it is indeed their intention to have the client close the connection after every message. |
Yep, this is server side. |
Specifically looking at this code:
fruently/src/fluent.rs
Line 82 in 833bae8
Is there a good reason to open a new connection for every message? Would it be good to have the option of keeping a connection open?
Thanks for your library.
The text was updated successfully, but these errors were encountered: