summaryrefslogtreecommitdiffstats
path: root/modules/websocket/emws_peer.h
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-01-28 14:06:28 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-01-28 14:10:46 +0100
commita48d0b5eefb1d830e0dbb41fcc0a903501178296 (patch)
tree7b4f415da1816692f748183217a3db7dbb3da962 /modules/websocket/emws_peer.h
parent887950b79319aff925a0cadf2020021aa512f529 (diff)
downloadredot-engine-a48d0b5eefb1d830e0dbb41fcc0a903501178296.tar.gz
Disable Nagle's algorithm for WebSocket TCP.
This should greatly decrease latency for the most common use cases. A new function WebSocketPeer::set_no_delay will allow to configure it if so desired.
Diffstat (limited to 'modules/websocket/emws_peer.h')
-rw-r--r--modules/websocket/emws_peer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/websocket/emws_peer.h b/modules/websocket/emws_peer.h
index 9fe7fb8edc..43b42f9be6 100644
--- a/modules/websocket/emws_peer.h
+++ b/modules/websocket/emws_peer.h
@@ -68,6 +68,7 @@ public:
virtual WriteMode get_write_mode() const;
virtual void set_write_mode(WriteMode p_mode);
virtual bool was_string_packet() const;
+ virtual void set_no_delay(bool p_enabled);
EMWSPeer();
~EMWSPeer();