diff options
| author | Shulhan <ms@kilabit.info> | 2023-07-03 22:27:30 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-07-03 23:10:38 +0700 |
| commit | e94de9a9b7a474c092aeccaf91bb43ecb35f6acb (patch) | |
| tree | ea83918c96456f633ca595d08ad5e93408dd83be /lib/websocket/examples | |
| parent | 7b01a3fc41b8611aa26c7d5d0f5c0f2bcd012ee0 (diff) | |
| download | pakakeh.go-e94de9a9b7a474c092aeccaf91bb43ecb35f6acb.tar.xz | |
lib/websocket: stop goroutines when no queue received after N duration
When the goroutine for upgrade, reader, or pinger does not receive
any input from its queue after N duration, stop it.
Currently, N equal to ServerOptions ReadWriteTimeout.
This allow unused goroutines released back to system, minimizing
resources usage.
Diffstat (limited to 'lib/websocket/examples')
0 files changed, 0 insertions, 0 deletions
