kwopublic has asked for the wisdom of the Perl Monks concerning the following question:
my $s = IO::Socket::UNIX->new( Type => SOCK_STREAM, Local => $sockname, Listen => 10, ReuseAddr => 1, ); if ( not $s ) { logerr("Can't create socket $sockname : $!"); exit $PACE::Constants::DAEMON_EXIT; } # Vantive ? : Set the Socket to non-blocking. $s->blocking(0); my $tmp_val = $s->blocking(); logdbg( 15, "Blocking flag = $tmp_val\n"); ... logdbg(14, "writeSocket : File # $fn has $size bytes to send.\n"); # if no data to write just return return if ($size == 0); $sent = syswrite $wh, $buf, $size; logdbg(14, "writeSocket : $size bytes attempted, $sent bytes writt +en.\n"); ... 06/01/31 15:49:56 Agent: writeSocket : File # 35 has 100098 bytes to s +end. 06/01/31 15:50:26 Agent: writeSocket : 100098 bytes attempted, 100098 +bytes written.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I get my IO::Socket::UNIX sockets to be non-blocking?
by davido (Cardinal) on Feb 01, 2006 at 18:50 UTC | |
by kwopublic (Initiate) on Feb 01, 2006 at 20:47 UTC | |
by davido (Cardinal) on Feb 02, 2006 at 01:14 UTC | |
by BrowserUk (Patriarch) on Feb 02, 2006 at 04:03 UTC |