On Sun, Jul 15, 2012 at 7:16 PM, Ankur Dahiya <legalos.l...@gmail.com> wrote:
>
> This leads to a timeout error in *every* thread. I also tried sharing the ia
> variable across threads
> (so that, there's 1 call to imdb.IMDb() but 10 calls to search_movie); this
> also leads to timeouts.

Hmm... it's possible, but I'm not sure were the problem can be, or
if it's fixable.

Do you have a very simple test to reproduce it?

> So, I guess imdbpy has some bug that's preventing me from parallelizing
> using threads.
> Any suggestions?

Well, there's general consensus that multi-processing is better and safer
that multi-threading, so if it's an option for you, please consider it.

Otherwise, we may try to spot the problem but I can't guarantee anything. :-)

Meanwhile, thanks for the bug report!


-- 
Davide Alberani <davide.alber...@gmail.com>  [PGP KeyID: 0x465BFD47]
http://www.mimante.net/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Imdbpy-devel mailing list
Imdbpy-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-devel

Reply via email to