caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] really_input and non-blocking operations
@ 2002-11-22 15:29 Yaron M. Minsky
  0 siblings, 0 replies; only message in thread
From: Yaron M. Minsky @ 2002-11-22 15:29 UTC (permalink / raw)
  To: Caml List

I just noticed that it's not safe to use really_input with nonblocking
operations.  In particular, as is clear from the source, if really_input
fails in the middle of a read due to a Sys_blocked_io, it ends up
discarding the what it's read so far.  It seems like this should be
noted in the documentation.

Another documentation problem:  the docs susggest that various unix
errors will be thrown on blocked IO, but in my own experiments, the only
exception I've seen thrown is Sys_blocked_io, which is not as far as I
can tell mentioned anywhere in the docs.

y

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-22 15:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-22 15:29 [Caml-list] really_input and non-blocking operations Yaron M. Minsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).