PeteLawler / BeagleBrew

A Beaglebone Black fork of a Raspberry Pi Temperature Controller for homebrewing and sous vide cooking
1 stars 1 forks source link

Web UI becomes unresponsive #29

Closed PeteLawler closed 7 years ago

PeteLawler commented 8 years ago

Despite the fix in #2, it'd appear the web UI can still become unresponsive after a period of time. No further information is available except 'refused to connect' error is received by the client.

PeteLawler commented 7 years ago

43 contains what might be a trace, or might not...

PeteLawler commented 7 years ago

http://stackoverflow.com/questions/180095/how-to-handle-a-broken-pipe-sigpipe-in-python/ http://stackoverflow.com/questions/12591760/flask-broken-pipe-with-requests

PeteLawler commented 7 years ago

Added threading in 6da4f4f6fe40923f0398b48c0c6d6fd268a89e83 let's see how this goes...

PeteLawler commented 7 years ago

http://stackoverflow.com/questions/37962925/flask-app-get-ioerror-errno-32-broken-pipe/38628780#38628780 would seem rather definitive on this matter.

The built-in werkzeug server is not capable of handling the remote end closing the connection while the server is still churing its content out.

Seems need to move away from using internal web server to nginx....

PeteLawler commented 7 years ago

I've rather happy with 6da4f4f, however it must be noted that this needs to be removed in production and a proper front end web server used. As such, this bug is fixed and moved to enhancement (Documentation)

PeteLawler commented 7 years ago

Ungh not closed... just reassigned....