Hi, I am facing an error "socket, too many open files". By lsof, I found there are a lot of sessions in ESTABLISHED state.
Then I tried to write a small program which just do http GET. After I add the timeout, connect close fields as someone else mentioned, I do see the session closed immediately after http request finished. While one thing confused me is, if the http request failed, like the error message shows below, request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) the http session will keep for several seconds sometime or close immediately. So I don't know how to handle this? close the tcp session or set a timeout for this session? BTW, I forgot to mention, I use proxy to send http request. The established tcp session is to the proxy. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
