Hello,
I suddenly started to get loads of following errors from a long running daemon that fires some concurrent HTTP request:
* "lookup
example.com: Non-recoverable failure in name resolution "
* "GET <url> dial tcp xxx.xxx.xxx.xxx:80: operation not permitted"
Apart from a few connections to PostgreSQL and similar, there are 12 go routine workers. Each of them calls a method that fires max 3 HTTP requests at a time. These methods all use "defer resp.Body.Close()" (and they return - so defer is called).
System is FreeBSD 9.2.
"kern.openfiles" is around 850 all the time, "kern.maxfiles" is 250000, "ulimit -n" ~11500.
Additionally i checked open files of the process with "lsof" and "fstat" - there are no more than expected, it shouldn't have any problems establishing new connections.
I really don't know what the problem is - it does not seem to be related to my code. Any help appreciated.