caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Writing to a blocked socket
@ 2011-08-02 17:01 David Allsopp
  2011-08-02 19:16 ` Gerd Stolpmann
  0 siblings, 1 reply; 4+ messages in thread
From: David Allsopp @ 2011-08-02 17:01 UTC (permalink / raw)
  To: OCaml List

I don't seem to be able to ask Google this in a way which will give me a
reasonable answer!

In the same process, if you have one thread blocked on a [recv] operation on
a socket, under Unix another thread can still write to the socket. Under
Windows, however, the call to [send] blocks because there's another thread
blocked on a [recv] to the same socket. Are there any options that can be
set to change that behaviour or is that just "the way it is" and the
application has to be coded using [select] instead? 


David

[the astute Mr Holmes may have spotted that having got ocaml-ssl built, I
then couldn't get its stelnet example to work ;o)]


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-02 20:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-02 17:01 [Caml-list] Writing to a blocked socket David Allsopp
2011-08-02 19:16 ` Gerd Stolpmann
2011-08-02 20:17   ` David Allsopp
2011-08-02 20:41     ` David Allsopp

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).