Re: logging.SocketHandler connections

2007-11-21 Thread oj
On Nov 20, 8:32 pm, Vinay Sajip <[EMAIL PROTECTED]> wrote: > On Nov 20, 1:47 pm, oj <[EMAIL PROTECTED]> wrote: > > > On Nov 20, 12:26 pm, Vinay Sajip <[EMAIL PROTECTED]> wrote: > > > > Can you confirm that if you add the while loop back in, all messages > > > are seen by the server? It worked for m

Re: logging.SocketHandler connections

2007-11-20 Thread Vinay Sajip
On Nov 20, 1:47 pm, oj <[EMAIL PROTECTED]> wrote: > On Nov 20, 12:26 pm, Vinay Sajip <[EMAIL PROTECTED]> wrote: > > > > > Can you confirm that if you add the while loop back in, all messages > > are seen by the server? It worked for me. > > Yes, it works in that case. This was meant to be implied b

Re: logging.SocketHandler connections

2007-11-20 Thread oj
On Nov 20, 12:26 pm, Vinay Sajip <[EMAIL PROTECTED]> wrote: > > Can you confirm that if you add the while loop back in, all messages > are seen by the server? It worked for me. Yes, it works in that case. This was meant to be implied by my earlier messages, but on reflection, isn't obvious. As I

Re: logging.SocketHandler connections

2007-11-20 Thread Vinay Sajip
On Nov 20, 12:08 pm, oj <[EMAIL PROTECTED]> wrote: > On Nov 19, 5:30 pm, Vinay Sajip <[EMAIL PROTECTED]> wrote: > > > > > On Nov 19, 10:27 am, oj <[EMAIL PROTECTED]> wrote: > > > > On Nov 16, 2:31 pm, Vinay Sajip <[EMAIL PROTECTED]> wrote: > > > > Here is the server code. Pretty much directly copie

Re: logging.SocketHandler connections

2007-11-20 Thread oj
On Nov 19, 5:30 pm, Vinay Sajip <[EMAIL PROTECTED]> wrote: > On Nov 19, 10:27 am, oj <[EMAIL PROTECTED]> wrote: > > > > > On Nov 16, 2:31 pm, Vinay Sajip <[EMAIL PROTECTED]> wrote: > > > Here is the server code. Pretty much directly copied from the example, > > aside from not having the the handler

Re: logging.SocketHandler connections

2007-11-19 Thread Vinay Sajip
On Nov 19, 10:27 am, oj <[EMAIL PROTECTED]> wrote: > On Nov 16, 2:31 pm, Vinay Sajip <[EMAIL PROTECTED]> wrote: > > Here is the server code. Pretty much directly copied from the example, > aside from not having the the handler loop forever, and queing the > records instead of dealing with the direc

Re: logging.SocketHandler connections

2007-11-19 Thread oj
On Nov 16, 2:31 pm, Vinay Sajip <[EMAIL PROTECTED]> wrote: > On Nov 15, 3:23 pm, oj <[EMAIL PROTECTED]> wrote: > > > > > However, initially, I had tried it with a server that closed the > > connection after receiving each record, and the SocketHandler doesn't > > seem to behave as advertised. > > >

Re: logging.SocketHandler connections

2007-11-16 Thread Vinay Sajip
On Nov 15, 3:23 pm, oj <[EMAIL PROTECTED]> wrote: > However, initially, I had tried it with a server that closed the > connection after receiving each record, and the SocketHandler doesn't > seem to behave as advertised. > > My test script was simply this: > [snip] > The SocketHandler documentation

logging.SocketHandler connections

2007-11-15 Thread oj
Hi folks, I'm writing some fairly simple logging code that makes use of the SocketHandler. The example server code works fine, as expected. (http:// docs.python.org/lib/network-logging.html) However, initially, I had tried it with a server that closed the connection after receiving each record,