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.
Loading
Please register or sign in to comment