Closed GoogleCodeExporter closed 9 years ago
The exception means that while connect() was in progress another greenlet
called close() on the same socket.
Just don't do that (or do but expect the exception) and you'll be fine.
Original comment by Denis.Bi...@gmail.com
on 6 Feb 2012 at 3:57
I'm pretty sure something is going wrong on the gevent end. None of these
errors appear when using 0.13.6. I'm using a bog standard networking library
and connections are only closed once.
Original comment by daH4...@gmail.com
on 6 Feb 2012 at 2:20
> bog standard networking library
this is irrelevant. The fact that it's standard does not mean it's thread-safe
or greenlet-safe. In fact, it almost always not.
> and connections are only closed once.
this is also irrelevant.
What's relevant is whether or not you're using the same socket in multiple
greenlets at the same time. The errors clearly say that you do just that.
From grepping your code you do a lot of spawn()s. Are you sure none of those
spawned greenlet share a socket and call methods on it?
Original comment by Denis.Bi...@gmail.com
on 6 Feb 2012 at 2:43
I'm rewriting the code to make sure that each socket is only closed by one
greenlet. I'll be sure after that and if the error still appears I'll update
you.
Original comment by daH4...@gmail.com
on 6 Feb 2012 at 2:46
Migrated to http://github.com/SiteSupport/gevent/issues/117
Original comment by Denis.Bi...@gmail.com
on 14 Sep 2012 at 10:52
Original issue reported on code.google.com by
daH4...@gmail.com
on 6 Feb 2012 at 1:37