note 82225 added to features.connection-handling

From: Date: Tue, 01 Apr 2008 21:25:45 +0000
Subject: note 82225 added to features.connection-handling
Groups: php.notes 
Request: Send a blank email to php-notes+get-137831@lists.php.net to get a copy of this message
connection_status() return ABORTED state ONLY if the client disconnects gracefully (with STOP button). In this case the browser send the RST TCP packet that notify PHP the connection is closed. But.... If the connection is stopped by networs troubles (wifi link down by exemple) the script doesn't know that the client is disconnected :( I've tried to use fopen("php://output") with stream_select() on writting to detect write locks (due to full buffer) but php give me this error : "cannot represent a stream of type Output as a select()able descriptor" So I don't know how to detect correctly network trouble connection... ---- Server IP: 69.147.83.197 Probable Submitter: 217.171.24.53 ---- Manual Page -- http://www.php.net/manual/en/features.connection-handling.php Edit -- https://master.php.net/note/edit/82225 Del: integrated -- https://master.php.net/note/delete/82225/integrated Del: useless -- https://master.php.net/note/delete/82225/useless Del: bad code -- https://master.php.net/note/delete/82225/bad+code Del: spam -- https://master.php.net/note/delete/82225/spam Del: non-english -- https://master.php.net/note/delete/82225/non-english Del: in docs -- https://master.php.net/note/delete/82225/in+docs Del: other reasons-- https://master.php.net/note/delete/82225 Reject -- https://master.php.net/note/reject/82225 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#137831) next »