apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Kirby <jus...@openaether.org>
Subject recv blocking when nonblock is set
Date Wed, 08 Oct 2003 01:04:43 GMT
Basically the problem is this (in psuedo code)

create socket
set APR_SO_NONBLOCK
connect to server
recv   <-- this blocks.

I was under the impression that by setting APR_SO_NONBLOCK that recv and
send functions would not block and return immediately if there was no
data available.

I saw a post suggesting a send call is required before recv so it won't
block, so I tried that. recv will still block after a write.

Am I missing something?

Justin




Mime
View raw message