Peter,
This works for me:
/* Detect dead connections */
int keepalive = 1 ;
r = setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE,
(char *)&keepalive,
sizeof(keepalive)) ;
recv() will now return ECONNABORTED when the host
disconnects.
Best regards,
Joris
--
Christopher Faylor wrote:
However, here is one of the times I repeated that I
don't want to do this over the internet:
[...]
Fixing this problem will be difficult. Dealing with
race conditions like this always is difficult.
Indeed, as an embedded software designer I know this
first hand.
I don't
Larry Hall wrote:
Chris has already answered that question earlier in
the discussion. He needs physical access to the
machine to resolve this problem. Remote access isn't
enough.
Forgive my ignorance, but I read the archives back to
1 jan 2004 but found no explanation why remote access
doesn't h
The hyperthreading problem reproduces perfectly on my
Hush ATX 2.8 GHz P4 (www.hush-pc.com): building my
application fails consistent (within 1 minute) with
hyperthreading enabled.
Since my machine is on-line 24/7, would it help if I
gave Christopher (or another motivated developer) remote
ac
4 matches
Mail list logo