Re: socket programming

2005-07-21 Thread Helge Aksdal
(random.uniform(min_pause, max_pause)) . do_connection_and_query_stuff() It works for me. Just play with the pause parameters until it fails and add a little. thanks, this worked for me too. slows down the program, but at least it works. :) -- Helge Aksdal -- http://mail.python.org/mailman/listinfo

Re: socket programming

2005-07-20 Thread Helge Aksdal
(random.uniform(min_pause, max_pause)) . do_connection_and_query_stuff() It works for me. Just play with the pause parameters until it fails and add a little. thanks for the tip. i'll give that a shot. -- Helge Aksdal -- http://mail.python.org/mailman/listinfo/python-list

socket programming

2005-07-19 Thread Helge Aksdal
)) (sread, swrite, serror) = select.select([], [self.sock], [], 10) if swrite.count(self.sock) 0: i = self.sock.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR) if 0 == i: self.sock.setblocking(1) -- Helge Aksdal -- http://mail.python.org/mailman/listinfo/python-list

Re: socket programming

2005-07-19 Thread Helge Aksdal
information, so when i want to check several hundred accounts i need to look them up one by one since the server closes the connection after each query. -- Helge Aksdal -- http://mail.python.org/mailman/listinfo/python-list

Re: socket programming

2005-07-19 Thread Helge Aksdal
accounts. -- Helge Aksdal -- http://mail.python.org/mailman/listinfo/python-list

Re: socket programming

2005-07-19 Thread Helge Aksdal
socket code to follow the redirection, as i tried to explain in my first email. any tips? or do i have to use good old nasty time.sleep to avoid this? -- Helge Aksdal -- http://mail.python.org/mailman/listinfo/python-list