Re: word socket in log file

30 views
Skip to first unread message

Liam Slusser

unread,
Apr 26, 2013, 7:09:37 PM4/26/13
to gev...@googlegroups.com

All -

Just wanted to follow up.  These "socket" in the log file seem to be caused by a connection to the socket listener but never handled by python hander.  So a TCP connection and request happens from the clients prospective and gevent seems to be aware of the request (it logs it) but the handler call to __call__ never seems to happen - so the request just times out.  I haven't done any other investigation.

I've downgraded gevent from 1.0rc2 to 0.13.8 and the problem has disappeared.  I've also noticed that our monitoring has since had zero issues talking to our service.

We do around 40 million requests a day with gevent and since the downgrade all is good.

thanks!
liam

On Wednesday, April 17, 2013 12:14:42 PM UTC-7, Liam Slusser wrote:
Hey All -

I'm having some logging issues with gevent 1.0rc2 using the pywsgi module.  Seems that a very small number of connections I see the word "socket" instead of a http code in the log file.

And when this happens it seems like the connection just hangs, as seen from the TTLB.  Here is a few tests using wget on the same server.

10.0.0.1 - - [2013-04-17 11:45:56] "GET /test/testfile.mp3 HTTP/1.0" 200 3692546 0.427831
10.0.0.1 - - [2013-04-17 11:46:51] "GET /test/testfile.mp3 HTTP/1.0" 200 3692546 0.102799
10.0.0.1 - - [2013-04-17 11:46:51] "GET /test/testfile.mp3 HTTP/1.0" socket 16679 45.160312
10.0.0.1 - - [2013-04-17 11:47:36] "GET /test/testfile.mp3 HTTP/1.0" 200 3692546 0.086770
10.0.0.1 - - [2013-04-17 11:47:37] "GET /test/testfile.mp3 HTTP/1.0" socket 16679 49.167244
10.0.0.1 - - [2013-04-17 11:47:37] "GET /test/testfile.mp3 HTTP/1.0" 200 3692546 0.131672
10.0.0.1 - - [2013-04-17 11:47:37] "GET /test/testfile.mp3 HTTP/1.0" 200 3692546 0.069550
10.0.0.1 - - [2013-04-17 11:47:38] "GET /test/testfile.mp3 HTTP/1.0" 200 3692546 0.072166

In our production logs I also see "socket" now and then as well.  As of today, out of 4 million requests, it has happened 365 times so its a fairly small number.

Thoughts?

thanks!
liam
Reply all
Reply to author
Forward
0 new messages