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

TCP flush responsibility [INT-3575] #7538

Closed
spring-operator opened this issue Dec 9, 2014 · 3 comments
Closed

TCP flush responsibility [INT-3575] #7538

spring-operator opened this issue Dec 9, 2014 · 3 comments
Assignees
Milestone

Comments

@spring-operator
Copy link
Contributor

spring-operator commented Dec 9, 2014

Dennis Thrysøe opened INT-3575 and commented

A BufferedOutputStream is now given to Serializer implementations, probably as a fix for #7439 (also reported by me).

This causes the opposite problem: sending a message doesn't actually send the message, but only buffers it - causing delay under low message frequency conditions.

I have been unable to find if flushing the stream is the responsibility of the Serializer implementation. If this is not the case, then it looks like the BufferedOutputStream should be flushed in TcpNioConnection.send() and similar places.


Affects: 4.1 GA

Issue Links:

Referenced from: pull request #1338

@spring-operator
Copy link
Contributor Author

Gary Russell commented

Yes; all the provided Serializer s flush() the output stream.

We should make a note in the migration guide and documentation that user serializers must now do the same.

@spring-operator
Copy link
Contributor Author

Artem Bilan commented

Just Documentation issue that any custom org.springframework.core.serializer.Serializer must flush() the outputStream in the end.

@spring-operator
Copy link
Contributor Author

spring-operator commented Dec 11, 2014

Gary Russell commented

Please note that we decided to issue the flush() in the connection; this will be available in 4.1.1; the work-around for 4.1.0 is to invoke flush() in a custom serializer; Also see #7540.

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

No branches or pull requests

2 participants