aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEric Marsden2024-12-11 16:59:45 +0100
committerRobert Pluim2024-12-13 14:12:39 +0100
commitc265febd97e940e6580ae42aa648358a0a2ed830 (patch)
treeac196e4708f07102b87138e237bc0f5a4fb4fd9c /doc
parent989cdb2c35889476702e4d2bd82d8195fa2e7ec0 (diff)
downloademacs-c265febd97e940e6580ae42aa648358a0a2ed830.tar.gz
emacs-c265febd97e940e6580ae42aa648358a0a2ed830.zip
Add support for TCP_NODELAY on network streams
* src/process.c (socket_options): add entry for TCP_NODELAY. * lisp/emacs-lisp/bytecomp.el: add :nodelay to valid keywords for make-network-process compiler-macro. * doc/lispref/processes.texi: document :nodelay keyword argument to set-network-process-option and make-network-process. (Bug#74793)
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/processes.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi
index 79ef959ae65..e0d71ac22b6 100644
--- a/doc/lispref/processes.texi
+++ b/doc/lispref/processes.texi
@@ -3090,6 +3090,13 @@ listening on that port. If @var{reuseaddr-flag} is @code{nil}, there
3090may be a period of time after the last use of that port (by any 3090may be a period of time after the last use of that port (by any
3091process on the host) where it is not possible to make a new server on 3091process on the host) where it is not possible to make a new server on
3092that port. 3092that port.
3093
3094@item :nodelay @var{nodelay-flag}
3095If @var{nodelay-flag} is non-@code{nil}, the @code{TCP_NODELAY} option
3096is enabled on the socket. This disables the Nagle algorithm, meaning
3097that network segments are sent as soon as possible, even when they
3098contain little data. This reduces network latency on the network
3099connection, but can lead to many small packets being sent.
3093@end table 3100@end table
3094 3101
3095@defun set-network-process-option process option value &optional no-error 3102@defun set-network-process-option process option value &optional no-error