On 12:21 pm, [email protected] wrote: >Finally I managed to solve myself this obscure bug. I put the >reactor.iterate() call before spawning new callbacks, in this way I >force >the mainloop to complete the cycle. The pseudocode would be modified in >this >way: > >Client() > proceed_sending(): > > chunk_tot = CHUNK_TOT > chunk_no = 0 > > def send(_) > if chunk_no == CHUNK_TOT: return > else: > ... read data... > reactor.iterate() ><---------------------------------------------------------- THIS LINE > d = filesender.callRemote("send_ >chunk", secret, chunk_no, data) > d.addCallback(send)
Erm. Sorry. This isn't a solution to whatever problem you're having. It is entirely invalid to use reactor.iterate() in this way. Jean-Paul _______________________________________________ Twisted-Python mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
