Re: Bizarre x86 segment layout problem causing select() slowdown: solved, sort of
Re: Bizarre x86 segment layout problem causing select() slowdown: solved, sort of
- Subject: Re: Bizarre x86 segment layout problem causing select() slowdown: solved, sort of
- From: Jonas Maebe <email@hidden>
- Date: Wed, 7 Feb 2007 19:49:34 +0100
On 07 Feb 2007, at 19:34, Dave Hayden wrote:
Looking at the code again, I noticed this in the socket setup code:
setsockopt(sock, SOL_SOCKET, SO_RCVBUF, (void*)32768, sizeof(int));
Shouldn't you pass the address of a variable containing the buffer
size rather than the actual value? Have you tried checking the return
value of that call?
It's still a bug of course if behaviour randomly changes depending on
which erroneous parameter you pass (maybe the kernel doesn't deal
gracefully with a wrong parameter there and uses an uninitialised
value in case it's invalid).
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden