/3144857/5a38e287dec7c480ad34e5073ae1773b95a86662
2012/7/20 Itamar Turner-Trauring :
>
> On 07/20/2012 04:26 AM, Luka Rahne wrote:
>> for each line in sx:
>> encode line whit extra data in packet (packet is like len + encrypted_)
>> Send packet over UDP (tcp not
My current problem is, that i do not know how to stop protocol and
quit listening.
What should i call to stop protocol and told reactor to remove from
schedule at StopIteration exception?
About while 1: loop- that loop is there just to find first non empty
line in sx file, in most case it break
on all of them
> 3) do (1) again in a callback to that deferred list until you run out of
> clients
>
> Twisted might have some standard tool somewhere to implement this, but I
> don't know about it.
>
> cheers
> lvh
>
>
> On 20 Jul 2012, at 09:01, Luka Rahne
I have like 1000 devices that need update that takes like 1 minute each. I
want them to update as quick as possible, sending lines from sx file, using
UDP and for each line i got reponse "OK".
Here is code that works for up to 500 servers, but not so well when i go
more (it just does not finish)