-
Notifications
You must be signed in to change notification settings - Fork 36
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
Fixed socket timeout #102
Comments
The real question is why the timeout happens always on consecutive requests. |
I noticed exactly the same. When running WSGIServer on RPI2 with Wiznet 5100 Hat , every request took 20 secs to answer. Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
|
I had an issue (and a few hours of figuring out what was going on) with the HTTP server example.
It always loaded for several seconds before anything appeared in the web browser.
I figured out when creating an instance of a WSGIServer, the socket timeout was hard coded to be 20 seconds.
I don't know if I have some error on my side but I always had to wait 20 seconds before the request has been answered.
I modified the constructor of WSGIServer to fit my needs and now it accepts a float parameter to set the socket timeout and it works perfectly for me.
Please feel free to correct me if I missed something!
`Modified constructor of WSGIServer
The text was updated successfully, but these errors were encountered: