aboutsummaryrefslogtreecommitdiff
path: root/lib/websocket/examples
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-07-03 22:27:30 +0700
committerShulhan <ms@kilabit.info>2023-07-03 23:10:38 +0700
commite94de9a9b7a474c092aeccaf91bb43ecb35f6acb (patch)
treeea83918c96456f633ca595d08ad5e93408dd83be /lib/websocket/examples
parent7b01a3fc41b8611aa26c7d5d0f5c0f2bcd012ee0 (diff)
downloadpakakeh.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