You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, there is a problem when service stops and calls .Shutdown(). ListenAndServe errors with a:
{"level":"error","ts":"2022-08-25T10:30:36.236Z","caller":"http/server.go:256","msg":"error closing server","version":"ce33dc19", "system":"http","error":"accept tcp4 0.0.0.0:6988: use of closed network connection"}
ListenAndServe started returning errors after an upgrading fasthttp from 1.31 -> 1.39. Then I've added IdleTimeout,ReadTimeout, WriteTimeout and it continues doing error. Fasthttp app is behind nginx with keep-alives.
Before to stop fasthttp server, k8s deregister app from DNS, then nginx is closing connections in 2 seconds, then server waits 10 seconds to call .Shutdown().
Hey, there is a problem when service stops and calls
.Shutdown()
.ListenAndServe
errors with a:ListenAndServe
started returning errors after an upgrading fasthttp from 1.31 -> 1.39. Then I've addedIdleTimeout
,ReadTimeout
,WriteTimeout
and it continues doing error. Fasthttp app is behind nginx with keep-alives.Before to stop fasthttp server, k8s deregister app from DNS, then nginx is closing connections in 2 seconds, then server waits 10 seconds to call
.Shutdown()
.How to prevent this behaviour?
The text was updated successfully, but these errors were encountered: