Re: recv and errno during a connection reset/closed by peer

2005-03-24 Thread Joris van der Sande
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 --

Re: Hyperthreading problem: remote access

2005-02-02 Thread Joris van der Sande
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

Re: Hyperthreading problem: remote access

2005-02-01 Thread Joris van der Sande
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

Hyperthreading problem: remote access

2005-01-30 Thread Joris van der Sande
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