Could someone show me a sample how to flush the socket sending buffer? Thanks a lot.
- From: mike <needpassion@xxxxxxxxx>
- Date: Fri, 08 Jun 2007 15:36:30 -0700
I have called the setsockopt() to set no delay after connecting like
this way:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('192.168.10.1', 21980))
s.setsockopt(socket.SOL_TCP, socket.TCP_NODELAY, 0)
s.send("abc@xxxxxxx\n")
s.send("123@xxxxxxx\n")
......
but still, the server can only receive the first line, and keep
waiting for the second line. So, in my mind the second line is still
in the sending buffer, and not reach the server side.
Any hints would be appreciated.
Mike
.
- Follow-Ups:
- Re: Could someone show me a sample how to flush the socket sending buffer? Thanks a lot.
- From: Jean-Paul Calderone
- Re: Could someone show me a sample how to flush the socket sending buffer? Thanks a lot.
- Prev by Date: Re: Splitting SAX results
- Next by Date: Re: Case-Insensitive Sorting of Multi-Dimensional Lists
- Previous by thread: Re: How to use TLS lite
- Next by thread: Re: Could someone show me a sample how to flush the socket sending buffer? Thanks a lot.
- Index(es):
Relevant Pages
|