note 84083 added to function.socket-set-option

From: Date: Thu, 26 Jun 2008 22:31:39 +0000
Subject: note 84083 added to function.socket-set-option
Groups: php.notes 
Request: Send a blank email to php-notes+get-140853@lists.php.net to get a copy of this message
Lingering will sometimes not work when you're working with non-blocking sockets. Even if the socket is set to linger and you keep tying to close until the socket doesn't return an error and the resource is no longer identifiable as type 'Socket', the socket may STILL close without sending everything. Therefore, in the event that you are using non-blocking sockets (which is preferable if you care at all about signaling), you should set the socket as blocking (socket_set_block()) before calling to close it. This will allow everything to flush before it returns. Dustin Oprea ---- Server IP: 208.69.120.35 Probable Submitter: 216.45.240.70 ---- Manual Page -- http://www.php.net/manual/en/function.socket-set-option.php Edit -- https://master.php.net/note/edit/84083 Del: integrated -- https://master.php.net/note/delete/84083/integrated Del: useless -- https://master.php.net/note/delete/84083/useless Del: bad code -- https://master.php.net/note/delete/84083/bad+code Del: spam -- https://master.php.net/note/delete/84083/spam Del: non-english -- https://master.php.net/note/delete/84083/non-english Del: in docs -- https://master.php.net/note/delete/84083/in+docs Del: other reasons-- https://master.php.net/note/delete/84083 Reject -- https://master.php.net/note/reject/84083 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#140853) next »