Method _Stdio.Fd()->set_nodelay()


Method set_nodelay

bool set_nodelay(bool|void state)

Description

Control Nagle's Algorithm (RFC 896)

Parameter state
0

Return to the normal state of using Nagle's Algorithm

1

(default) Disable Nagling - small writes will not be queued.

Returns

Returns 1 on success, and 0 (zero) on failure.

Note

This operation is only valid on sockets.

See also

setsockopt()