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

'Socket not connected' error behind reverse proxy #573

Open
fungs opened this issue Apr 25, 2024 · 4 comments
Open

'Socket not connected' error behind reverse proxy #573

fungs opened this issue Apr 25, 2024 · 4 comments

Comments

@fungs
Copy link

fungs commented Apr 25, 2024

Hi,

I observed that, when running piping-server-rust behind HAProxy, I'm getting the following error after each (successful) transfer:

[ERROR piping_server] Failed to serve HTTP connection: hyper::Error(Shutdown, Os { code: 107, kind: NotConnected, message: "Socket not connected" })
[ERROR piping_server] Failed to serve HTTP connection: hyper::Error(Shutdown, Os { code: 107, kind: NotConnected, message: "Socket not connected" })

I'm not sure what this means, and if this might be related to the timeout parameters. However, I've set timeouts generously and the reverse proxy is running on the same local system as piping-server.

Any ideas?

@fungs fungs changed the title 'Failed to serve HTTP connection' behind reverse proxy 'Socket not connected' error behind reverse proxy May 7, 2024
@nwtgck
Copy link
Owner

nwtgck commented Sep 12, 2024

@fungs
Does HAProxy work with other HTTP server like nginx or nwtgck/pipng-server (not rust) instead of piping-server-rust?

@fungs
Copy link
Author

fungs commented Sep 12, 2024

@nwtgck I haven't tried piping-server instead of piping-server-rust, but HAProxy should work with any kind of HTTP server, it is one of the oldest reverse proxies around and part of many commercial cloud offerings. For me, the error and related issues are more likely pointing to the rust stack. Somehow the software loses the HTTP connection back to the reverse proxy. Then, HAProxy just terminates the connection after the configure timeout.

@nwtgck
Copy link
Owner

nwtgck commented Sep 13, 2024

@fungs
Sorry. I missied "each (successful) transfer."

Does curl http://your-local-haproxy/version print the Piping Server version without errors?

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

2 participants