>>>>> "RD" == Raul Dias <[EMAIL PROTECTED]> writes:

  RD> when you accept a connection like:
  RD> $client = $socket->accept;

  RD> $client will be in blocking mode _even_ if $socket is in
  RD> non-blocking mode.

the listen socket has nothing to do with a newly accepted
socket. non-blocking mode on the listen socket only affects accept. the
accepted socket has its own blocking mode that needs to be set
separately.

i have seen the confusion of the listen and accepted sockets
elsewhere. the listen socket is only for accepting and the accepted
socket is only for i/o.

uri

-- 
Uri Guttman  ---------  [EMAIL PROTECTED]  ----------  http://www.sysarch.com
SYStems ARCHitecture and Stem Development ------ http://www.stemsystems.com
Search or Offer Perl Jobs  --------------------------  http://jobs.perl.org

Reply via email to