note 126303 added to function.stream-socket-shutdown

From: Date: Mon, 02 Aug 2021 13:22:17 +0000
Subject: note 126303 added to function.stream-socket-shutdown
Groups: php.notes 
Request: Send a blank email to php-notes+get-216718@lists.php.net to get a copy of this message
As Daniel J has pointed out, stream_socket_shutdown doesn't send the TLS close_notify message. In some instances, it's a preferred function over fclose (to trigger stream_select, for example). To use this function correctly with TLS, use stream_socket_enable_crypto($fp, false); before shutting down the socket. ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 37.46.114.113) ---- Manual Page -- https://php.net/manual/en/function.stream-socket-shutdown.php Edit -- https://main.php.net/note/edit/126303 Del: integrated -- https://main.php.net/note/delete/126303/integrated Del: useless -- https://main.php.net/note/delete/126303/useless Del: bad code -- https://main.php.net/note/delete/126303/bad+code Del: spam -- https://main.php.net/note/delete/126303/spam Del: non-english -- https://main.php.net/note/delete/126303/non-english Del: in docs -- https://main.php.net/note/delete/126303/in+docs Del: other reasons-- https://main.php.net/note/delete/126303 Reject -- https://main.php.net/note/reject/126303 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216718) next »