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.
This commit is contained in:
parent
887950b793
commit
a48d0b5eef
9 changed files with 27 additions and 0 deletions
|
|
@ -109,6 +109,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);
|
||||
|
||||
void make_context(PeerData *p_data, unsigned int p_in_buf_size, unsigned int p_in_pkt_size, unsigned int p_out_buf_size, unsigned int p_out_pkt_size);
|
||||
Error parse_message(const wslay_event_on_msg_recv_arg *arg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue