top | item 4546605

Go is less reliable than Flask/Tornado?

1 points| taw9 | 13 years ago |webapps.stackexchange.com | reply

3 comments

order
[+] georgemcbay|13 years ago|reply
The code is probably running out of file descriptors either because they are exhaused prior to Go's gc reaping the open ones or because they are being held open by default Keep-Alive.

Boost the fd count in /etc/security/limits.conf past 1024 or whatever the default is on the OS. Or if that isn't an option, then modify the Go http server code so that it closes each web connection after the request is processed.

[+] taw9|13 years ago|reply
How do you force the socket to close after writing the response?