Re: urrlib2 multithreading error

2007-01-17 Thread Facundo Batista
[EMAIL PROTECTED] wrote: > I'm using urllib2 to retrieve some data usign http in a multithreaded > application. > Here's a piece of code: > req = urllib2.Request(url, txdata, txheaders) > opener = urllib2.build_opener() > opener.addheaders = [('User-agent

Re: urrlib2 multithreading error

2007-01-16 Thread Gabriel Genellina
At Tuesday 16/1/2007 11:41, [EMAIL PROTECTED] wrote: When I use it on a single thread everything goes ok, when I create multiple threads the execution halts and the program terminates, just before the last line (when I execute the request.read(.) ). Obviously I tried to catch the exception but i

urrlib2 multithreading error

2007-01-16 Thread viscanti
Hi, I'm using urllib2 to retrieve some data usign http in a multithreaded application. Here's a piece of code: req = urllib2.Request(url, txdata, txheaders) opener = urllib2.build_opener() opener.addheaders = [('User-agent', user_agent)]