-
Notifications
You must be signed in to change notification settings - Fork 121
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
aio hang #291
Comments
The socket is fully buffered so your puts typically won't be sent. Either make it line buffered or add '$f flush' after the last puts |
OK, it's an easy fix, but it breaks previously working code. |
The docs for aio buffering say:
And this is still true. With full buffering you can't rely on when the buffer is flushed without an explicit flush. If it worked before it was just "lucky" as a side effect of the implementation (probably that a switch from write to read caused a flush), but that is not part of the documented interface. |
With ad72004, this produces the expected result:
With 41f431f and subsequent, it just hangs after the "$f gets", without producing any output, until presumably the server times it out and closes the connection.
The text was updated successfully, but these errors were encountered: