--TEST-- stream context tcp_nodelay server --SKIPIF-- --FILE-- [ "tcp_nodelay" => true ] ]); $server = stream_socket_server( "tcp://127.0.0.1:9099", $errno, $errstr, STREAM_SERVER_BIND | STREAM_SERVER_LISTEN, $ctxt); $client = stream_socket_accept($server); var_dump(socket_get_option( socket_import_stream($server), SOL_TCP, TCP_NODELAY) > 0); var_dump(socket_get_option( socket_import_stream($client), SOL_TCP, TCP_NODELAY) > 0); fclose($client); fclose($server); CODE; $clientCode = <<<'CODE' $test = stream_socket_client( "tcp://127.0.0.1:9099", $errno, $errstr, 10); sleep(1); fclose($test); CODE; include sprintf( "%s/../../../openssl/tests/ServerClientTestCase.inc", __DIR__); ServerClientTestCase::getInstance()->run($serverCode, $clientCode); ?> --EXPECT-- bool(false) bool(true)