001+ Warning: stream_socket_server(): unable to connect to tcp://127.0.0.1:31337 (Address already in use) in %s/fgets_socket_variation1.php on line 4
002+
003+ Warning: stream_socket_accept() expects parameter 1 to be resource, boolean given in %s/fgets_socket_variation1.php on line 14
005- string(6) "line1
006- "
006+ Warning: fwrite() expects parameter 1 to be resource, boolean given in %s/fgets_socket_variation1.php on line 17
008+
008-
011+ ** ERROR: process timed out **
009- Read another line from the client:
010- string(6) "line2
011- "
012-
013-
014- Close the server side socket and read the remaining data from the client
015- done