Re: read/write to java socket in python

2007-11-28 Thread Dave Baum
Your server program is using readLine(), which will block until a newline is received. The server code does not write a newline, so it is waiting at recv() for data from the server, and the server is still waiting for a newline. If you change the client to do the following, it should work: s

Re: read/write to java socket in python

2007-11-27 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > I have a problem with reading from a Java server after I have > written to it - it just hangs. It works fine if I just write to > the server and not try to write. Excuse me? > I have read the HOWTO on sockets - and it states that there is a > problem (something about f

Re: read/write to java socket in python

2007-11-27 Thread James Matthews
It's a socket interface it should be universal! On Nov 27, 2007 4:08 PM, <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a problem with reading from a Java server after I have written > to it - it just hangs. It works fine if I just write to the server and > not try to write. I have read the HOWT

Re: read/write to java socket in python

2007-11-27 Thread madsornomads
On Nov 27, 4:29 pm, hdante <[EMAIL PROTECTED]> wrote: > On Nov 27, 1:08 pm, [EMAIL PROTECTED] wrote: > > > > > Hi all, > > > I have a problem with reading from a Java server after I have written > > to it - it just hangs. It works fine if I just write to the server and > > not try to write. I have

Re: read/write to java socket in python

2007-11-27 Thread madsornomads
On Nov 27, 4:21 pm, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On Tue, 27 Nov 2007 07:08:04 -0800 (PST), [EMAIL PROTECTED] wrote: > >Hi all, > > >I have a problem with reading from a Java server after I have written > >to it - it just hangs. It works fine if I just write to the server and > >

Re: read/write to java socket in python

2007-11-27 Thread hdante
On Nov 27, 1:08 pm, [EMAIL PROTECTED] wrote: > Hi all, > > I have a problem with reading from a Java server after I have written > to it - it just hangs. It works fine if I just write to the server and > not try to write. I have read the HOWTO on sockets - and it states > that there is a problem (s

Re: read/write to java socket in python

2007-11-27 Thread Jean-Paul Calderone
On Tue, 27 Nov 2007 07:08:04 -0800 (PST), [EMAIL PROTECTED] wrote: >Hi all, > >I have a problem with reading from a Java server after I have written >to it - it just hangs. It works fine if I just write to the server and >not try to write. I have read the HOWTO on sockets - and it states >that ther

read/write to java socket in python

2007-11-27 Thread madsornomads
Hi all, I have a problem with reading from a Java server after I have written to it - it just hangs. It works fine if I just write to the server and not try to write. I have read the HOWTO on sockets - and it states that there is a problem (something about flushing), but not what the solutions is.