diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-01-28 14:06:28 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-01-28 14:10:46 +0100 |
commit | a48d0b5eefb1d830e0dbb41fcc0a903501178296 (patch) | |
tree | 7b4f415da1816692f748183217a3db7dbb3da962 /modules/websocket/emws_peer.h | |
parent | 887950b79319aff925a0cadf2020021aa512f529 (diff) | |
download | redot-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.h | 1 |
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(); |