You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tell me if you can reproduce this. Here's a simple app that streams and infinite response. Notice that a warning is emitted to the server console after each write():
Now launch that on a remote machine, using just one worker (and keep the console open so you can see the warnings).
starman --workers 1 app.psgi
From a different machine, hit the server (e.g):
curl http://remotehost:5000
After you start receiving the stream on localhost, abort the curl command by pressing Ctrl-C.
At this point, the next call to write() appears to block indefinitely, and the server does not emit any more warnings.
But if you do the same experiment using the same machine for both server and client, then write() does not block and the server continues to emit warnings.
I'm using a Mac and a Debian machine as my client & server (respectively). I suspect this has something to do with TCP/IP fundamentals more than it does Starman. So maybe you just need to educate me a bit here.
The text was updated successfully, but these errors were encountered:
Tell me if you can reproduce this. Here's a simple app that streams and infinite response. Notice that a warning is emitted to the server console after each write():
Now launch that on a remote machine, using just one worker (and keep the console open so you can see the warnings).
From a different machine, hit the server (e.g):
After you start receiving the stream on localhost, abort the
curl
command by pressing Ctrl-C.At this point, the next call to write() appears to block indefinitely, and the server does not emit any more warnings.
But if you do the same experiment using the same machine for both server and client, then write() does not block and the server continues to emit warnings.
I'm using a Mac and a Debian machine as my client & server (respectively). I suspect this has something to do with TCP/IP fundamentals more than it does Starman. So maybe you just need to educate me a bit here.
The text was updated successfully, but these errors were encountered: