Shachar Shemesh wrote:
guy keren wrote:
Amos Shapira wrote:
On 14/05/07, *guy keren* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:

Alas - I think that I've just read not long ago that there is a bug
in Linux' select in implementing just that and it might miss the
close from the other side sometimes
what you are describing here sounds astonishing - that such a basic
feature of the sockets implementation is broken? i find this hard to
believe, without clear evidence.
Jumping in in the middle here, I don't have any clear evidence (or any
evidence at all) for what Amos was talking about, but I did run across
this worrying change in Wine:

http://www.winehq.org/pipermail/wine-cvs/2006-November/027552.html


Now, it is totally unclear to me whether the fd leak in question is a
result of a Wine bug around select, or of select itself. This may, after
all, prove to be nothing important. Then again, being as it is that all
Wine used to do was translate the Windows version of select to the
almost identical Linux version, I find this worrying.

Shachar

very nice. so to solve the problem, they switched to performing a memory allocation and freeing for each call to poll. sounds like the performance for busy programs will go down (as memory management is a rather CPU-intensive operation). i wonder if it's significantly less expensive then the poll system call itself.

since i don't understand the fd leakage bug mentioned there, i don't know the answer myself.

--guy


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to