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

Race condition between write and flush in HttpClient.submit() #245

Closed
NiteshKant opened this issue Oct 15, 2014 · 0 comments
Closed

Race condition between write and flush in HttpClient.submit() #245

NiteshKant opened this issue Oct 15, 2014 · 0 comments
Assignees
Milestone

Comments

@NiteshKant
Copy link
Member

HttpClient.submit() eventually results in a writeAndFlush() call on the ObservableConnection passing the HttpClientRequest (Code ref). Since, the content of the HttpClientRequest is written asynchronously (subscribing to the content Observable) it is possible that the flush (upon returning of write()) happens even before the entire content stream is written on the wire. This would result in unflushed content.

@NiteshKant NiteshKant self-assigned this Oct 15, 2014
@NiteshKant NiteshKant added this to the 0.3.15 milestone Oct 15, 2014
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

1 participant