-
Notifications
You must be signed in to change notification settings - Fork 176
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
Lwt.pause needs to be used three times #916
Comments
Hello, I think that
|
The problem is, I cannot call into Lwt_unix, only core Lwt. Also the documentation says:
So So why are pause promisis resolved so frequently. Shouldn't they be resolved only after poll/select had a chance? |
Hi,
I'm working with a ssl connection. A reader is permanently watching it for data or
EOF
.After few seconds of calculations this ssl connection might have been shutdown by the remote end and an
EOF
is waiting to be read. Now I need to force Lwt toselect
so the reader can reopen the connection before writing to the already half-closed connection.I need to call
Lwt.pause
three times to enforce this:I added traces to the
Lwt_main.run
mainloop:Is this meant to work this way? Maybe this should be documented? How am I supposed to force polling of a socket for reads before writing to it?
The text was updated successfully, but these errors were encountered: