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

Question: Half Closed Connections #35

Closed
Melozzola opened this issue Feb 13, 2017 · 7 comments
Closed

Question: Half Closed Connections #35

Melozzola opened this issue Feb 13, 2017 · 7 comments

Comments

@Melozzola
Copy link
Contributor

I'm wondering if there is a way in reactor-netty to shut down the output (from the client to the server) once the data has been written to the channel. Shutting down the output means calling SocketChannel#shutdownOutput()

Essentially I have a Publisher that is producing the data to send. Shutting down the output when the Publisher finishes might be too early because there might be pending writes. Is there a way to intercept when all the writes have been completed?
My TCP server (on which I don't have control) is waiting for the shut shutdownOutput() signal before starting sending the response.

@simonbasle simonbasle modified the milestone: 0.6.2.RELEASE Feb 13, 2017
@simonbasle simonbasle added the type/enhancement A general enhancement label Feb 13, 2017
@smaldini
Copy link
Contributor

We should be able to do that indeed - that seems in fact a miss from TCP client and even Http client depending on it!

@Melozzola
Copy link
Contributor Author

Thanks guys for the REACTIVE response :-)
Do you have any idea when 0.6.2.RELEASE will be released? Just a rough estimation like in the next 2/3 months?

@smaldini
Copy link
Contributor

Like in reactor-core the ideal goal is to bring a patch every month or so. I'd expect a new version in March for instance before Spring 5 RC1 possibly.

@smaldini smaldini modified the milestones: 0.6.2.RELEASE, 0.6.3.RELEASE Mar 7, 2017
@smaldini smaldini modified the milestones: 0.6.3.RELEASE, 0.7.0.RELEASE May 3, 2017
@smaldini smaldini modified the milestones: 0.7.0.RELEASE, 0.8.0.RELEASE Sep 18, 2017
@smaldini smaldini modified the milestones: 0.8.0.RELEASE, 0.8.x Backlog Dec 14, 2017
@smaldini smaldini modified the milestones: 0.8.x Backlog, 0.9.x Backlog Feb 7, 2019
@Fetsivalen
Copy link

Hi,
Is there any plans to support half-closed state?
Or maybe some recomended workaraund exists?

@violetagg
Copy link
Member

@Fetsivalen Did you try the latest release?

@violetagg violetagg removed the type/enhancement A general enhancement label Mar 17, 2020
@violetagg violetagg removed this from the 0.9.x Maintenance Backlog milestone Mar 17, 2020
@violetagg
Copy link
Member

@Melozzola @Fetsivalen tested this with the latest 0.9.x and it is working
the test case a40c949

@Fetsivalen
Copy link

@violetagg I missed that option. Thanks, i't looks like it will cover my case.

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

5 participants