I have the following code which was working fine in test but in live I am 
getting 500 errors reported to the clients with multiple lines of 

2017/10/17 15:44:52 http: Accept error: accept tcp [::]:9090: accept4: too 
many open files; retrying in 1s
2017/10/17 15:44:53 http: Accept error: accept tcp [::]:9090: accept4: too 
many open files; retrying in 1s
2017/10/17 15:44:54 http: Accept error: accept tcp [::]:9090: accept4: too 
many open files; retrying in 1s

https://play.golang.org/p/Q5snIxXBpX

Now I know I can increase the limits and probably need to but am wondering 
if I am just prolonging the inevitable here and it will eventually fall 
down again.

The web server should be quite simple and I can't see how it is leaking 
file descriptors at all!  Can anyone else see how/why?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to