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

Requests don't complete? #3

Open
peterept opened this issue Mar 27, 2018 · 2 comments
Open

Requests don't complete? #3

peterept opened this issue Mar 27, 2018 · 2 comments

Comments

@peterept
Copy link
Contributor

Hi,

Thank you for your great web server.

I'm running UniWeb and have a handler at path /status.

When I call:

$ curl http://localhost:<port>/status

It doesn't complete and just blocks. According to Unity logs I see it has handled the request.

Any ideas?

@peterept
Copy link
Contributor Author

Ahh the reason is the request network stream isn't being closed, so it never completes. It appears to complete in a browser because a browser is more forgiving then curl and will output data it receives streaming it into the browser. Eventually the browser (or curl) decide to close the connection themselves to avoid having stuck open connections.

I'll create a PR.

@peterept
Copy link
Contributor Author

Added PR with the fix:

#4

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