On 11 Jul 2002, Gilad Ben-Yossef wrote:

> That's it. The descriptor did change status but you gave write a bigger
> byte then it can chew, so to speak. It promised you can write, but
> didn't say how much.
>
> If you don't want to block, request non blocking IO.

or use some API to check how much free buffer space the socket has, and
don't try to write more then that. as far as i can tell, this should also
assure you not to get blocked - but better check the kernel's code for
more details. for example, potentially this 'write' call might block on an
attempt to allocate buffer memory, or something similar.

-- 
guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy


=================================================================
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