note 127978 added to function.socket-shutdown

From: Date: Sun, 04 Dec 2022 07:29:20 +0000
Subject: note 127978 added to function.socket-shutdown
Groups: php.notes 
Request: Send a blank email to php-notes+get-219935@lists.php.net to get a copy of this message
Shutting down is a formality two peers can do before closing their connections. It's not required, but it can help assert your I/O procedures, so it's useful. If writing is shut down, trying to send will result in a pipe error, and the remote peer will read an empty string after receiving all other pending data. If reading is shut down, trying to receive will return an empty string, and the remote peer will get a pipe error if they try to send. Writing should be shut down first between two peers. Remaining data should then be read and handled. If anything is sent at this point it should be a "goodbye" (nothing that requires the remote peer to write back to you). Finally, reading can be shut down. Selection on a shut down channel will always succeed. Similarly, the remote peer will always succeed at selecting the opposite channel. ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.159.161 (proxied: 136.24.19.215) ---- Manual Page -- https://php.net/manual/en/function.socket-shutdown.php Edit -- https://main.php.net/note/edit/127978 Del: integrated -- https://main.php.net/note/delete/127978/integrated Del: useless -- https://main.php.net/note/delete/127978/useless Del: bad code -- https://main.php.net/note/delete/127978/bad+code Del: spam -- https://main.php.net/note/delete/127978/spam Del: non-english -- https://main.php.net/note/delete/127978/non-english Del: in docs -- https://main.php.net/note/delete/127978/in+docs Del: other reasons-- https://main.php.net/note/delete/127978 Reject -- https://main.php.net/note/reject/127978 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#219935) next »