Mysterious connection reset #960
Unanswered
jadeoneill
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got a quite complex proprietary server program. One of the things it does is create an App that has several URLs, listens on port 3000, and calls app.run(). I run the HelloWorld example and I can connect from my own computer on port 3000 and get the simple webpage with the words Hello World.
But here's where it gets complicated. When I run our complex program and try to connect to it, it always gets "connection reset". Firefox says "The connection to the server was reset while the page was loading." Chrome says "This page isn’t working. **** didn’t send any data.
ERR_EMPTY_RESPONSE".
I don't know if I can write a simple application that reproduces the bug; I did try HelloWorld which is similar in its basic structure, apart from some mysterious difference. We're using libuv if that helps.
I've tried debugging using GDB with a breakpoint at the start of the callback for app.get( "/", ...) and that part of the code doesn't get run at all.
So what I can't figure out is, how can I get an error message that explains why the connection is being reset. I think it's being reset inside one of the libraries, but they don't give any error messages and I don't know how to add one. I can't add error reporting in the callback because it isn't called.
Using the HelloWorld example, can you show me where I would put code for reporting the error that leads to connection reset? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions