Could someone show me a sample how to flush the socket sending buffer? Thanks a lot.



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

.



Relevant Pages

  • Re: Forms authentication - change password
    ... Contact the server administrator. ... I think your authentication validation method needs to be set to ... the change password feature within ISA ... | | meant not connecting to a Global Catalog. ...
    (microsoft.public.isa)
  • Re: SBS Slow user logons problem
    ... Microsoft MVPs ... Are the workstations and Server all connecting their nics to a router? ...
    (microsoft.public.windows.server.sbs)
  • Re: SBS Slow user logons problem
    ... Microsoft MVPs ... Are the workstations and Server all connecting their nics to a router? ...
    (microsoft.public.windows.server.sbs)
  • Re: Outlook RPC over HTTP
    ... Now its checked it does not connect VPN ... In case it matters i have gone into IIS on the Server and checked the ... Proxy Setttings: ... mutually authenticate the sesssion when connecting with SSL: ...
    (microsoft.public.windows.server.sbs)
  • Re: Outlook RPC over HTTP
    ... Now its checked it does not connect VPN or otherwise. ... In case it matters i have gone into IIS on the Server and checked the server ... exchange but I think it is connecting over TCP/IP. ... Proxy Setttings: ...
    (microsoft.public.windows.server.sbs)