urllib2.urlopen kills uswgi worker in pyramid app -- anyone else experience this ?

47 views
Skip to first unread message

Jonathan Vanasco

unread,
Jun 12, 2012, 3:54:18 PM6/12/12
to pylons-discuss
wondering if anyone else has run into this.

this will cause uWSGI to die ( DAMN ! worker 1 (pid: 6809) died,
killed by signal 10 :( trying respawn ... ):

import urllib2
result = urllib2.urlopen( 'http://cnn.com' )

any url will work. took a while to track this down -- nothing in the
logs ( no exception is raised ) except for:

DAMN ! worker 1 (pid: 6809) died, killed by signal 10 :( trying
respawn ...

this works fine under paster, etc.

this behavior is on the most current uwsgi & pyramid , python 2.7 ,
and on OSX + ubuntu

has anyone else encountered this ?

Roberto De Ioris

unread,
Jun 13, 2012, 3:16:32 AM6/13/12
to pylons-...@googlegroups.com
Are you sure you have not set some memory limit in uWSGI ? (like --limit-as or cgroups)

>
> --
> You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
> To post to this group, send email to pylons-...@googlegroups.com.
> To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
>

--
Roberto De Ioris
http://unbit.it
JID: rob...@jabber.unbit.it

Reply all
Reply to author
Forward
0 new messages