strange sockets

Skink spam at me.please
Mon Nov 7 11:13:20 CET 2005


Sion Arrowsmith wrote:
> 
> conn.sendall(struct.pack("!i", len(data)) + data)
> 
> or after creating conn
> 
> conn.setsockopt(socket.SOL_TCP, socket.TCP_NODELAY, 1)
> 
> to disable Nagle.
> 

Sion,

thank you for your help,

it works but...
it works when client & server is in python
i tried both solutions and they work when client is client.py
they both don't work when client is java client
when i tried to connect python's server by java client i have the same:

% java Loader server.py server.py server.py
init 29
server.py reading 631 1
server.py reading 631 40
server.py reading 631 41

why?

thanks,
skink.



More information about the Python-list mailing list