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: Dave Hayden <email@hidden>
- Date: Wed, 7 Feb 2007 10:34:20 -0800
Looking at the code again, I noticed this in the socket setup code:
setsockopt(sock, SOL_SOCKET, SO_RCVBUF, (void*)32768, sizeof(int));
Now, I could swear when I added that line the default buffer was less
than 32K, but in 10.4.8 the default appears to be 64K. When I replace
32768 with 65535, the problem goes away. I don't know why select
would be sensitive to code layout when you mess with the receive
buffer size, but I think I'm comfortable leaving that in spooky land.
Is this worth filing a bug on?
-D
_______________________________________________
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