Re: Weird problem with UDP and gevent

2013-10-19 Thread Grant Edwards
On 2013-10-18, James Harris wrote: > "Roy Smith" wrote in message > news:l3riea$82$1...@panix2.panix.com... >> I'm running: >> >> Ubuntu Precise >> Python 2.7.3 >> django 1.4.5 >> gunicorn 0.17.4 >> gevent 1.0dev (rc3) >> >> I haven't been able to pin this down exactly, but it looks like if I >>

Re: Weird problem with UDP and gevent

2013-10-18 Thread Roy Smith
On Friday, October 18, 2013 1:04:38 PM UTC-4, James Harris wrote: > Those are two different things. You would normally use connect() on a > SOCK_STREAM socket. It requires that the remote endpoint, in this case > localhost:9700, has an open socket listening for connections. sendto() is > the rig

Re: Weird problem with UDP and gevent

2013-10-18 Thread James Harris
"Roy Smith" wrote in message news:l3riea$82$1...@panix2.panix.com... > I'm running: > > Ubuntu Precise > Python 2.7.3 > django 1.4.5 > gunicorn 0.17.4 > gevent 1.0dev (rc3) > > I haven't been able to pin this down exactly, but it looks like if I > do (inside of a custom logging.Handler subclass):

Weird problem with UDP and gevent

2013-10-18 Thread Roy Smith
I'm running: Ubuntu Precise Python 2.7.3 django 1.4.5 gunicorn 0.17.4 gevent 1.0dev (rc3) I haven't been able to pin this down exactly, but it looks like if I do (inside of a custom logging.Handler subclass): # Paraphrased from the actual code remote_addr = ("localhost", 9700)