Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #57049
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!panix2.panix.com!not-for-mail |
|---|---|
| From | roy@panix.com (Roy Smith) |
| Newsgroups | comp.lang.python |
| Subject | Weird problem with UDP and gevent |
| Date | 18 Oct 2013 11:00:26 -0400 |
| Organization | PANIX -- Public Access Networks Corp. |
| Lines | 32 |
| Message-ID | <l3riea$82$1@panix2.panix.com> (permalink) |
| NNTP-Posting-Host | panix2.panix.com |
| X-Trace | reader1.panix.com 1382108427 28337 166.84.1.2 (18 Oct 2013 15:00:27 GMT) |
| X-Complaints-To | abuse@panix.com |
| NNTP-Posting-Date | Fri, 18 Oct 2013 15:00:27 +0000 (UTC) |
| Xref | csiph.com comp.lang.python:57049 |
Show key headers only | View raw
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)
self.socket = socket.socket(type=socket.SOCK_DGRAM)
payload = "..."
self.socket.connect(remote_addr)
self.socket.send(payload)
I get intermittant hangs in the connect() call. If I rewrite this as:
remote_addr = ("localhost", 9700)
self.socket = socket.socket(type=socket.SOCK_DGRAM)
payload = "..."
self.socket.sendto(payload, remote_addr)
everything works fine. Has anybody seen anything like this? I'm
guessing this is some kind of gevent bug.
My apologies if this is the wrong forum. The gevent mailing list
appears to be broken (no activity in 3 weeks, no response to
subscription request, post via google groups disappeared into the
void), so I'm trying here.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Weird problem with UDP and gevent roy@panix.com (Roy Smith) - 2013-10-18 11:00 -0400
Re: Weird problem with UDP and gevent "James Harris" <james.harris.1@gmail.com> - 2013-10-18 18:04 +0100
Re: Weird problem with UDP and gevent Roy Smith <roy@panix.com> - 2013-10-18 11:44 -0700
Re: Weird problem with UDP and gevent Grant Edwards <invalid@invalid.invalid> - 2013-10-19 15:15 +0000
csiph-web