Skip to content
Commit 846e1af9 authored by Maxim Ivanov's avatar Maxim Ivanov
Browse files

Push net.Conn Deadline forward on each read.

SetDeadline sets absolute time after which all IO operations start to fail.

Previously deadline was pushed forward upon successful websocket message
receipt, which works for small messages, but fail to behave adequately
if large message is transmitted over a slow connection.

This change makes deadline to be pushed forward on every successful read,
allowing slow clients to complete transmission as long as they keep sending
bytes.
parent aa86ffef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment