sockets: How to know when your data is sent

Grant Edwards grante at visi.com
Wed Nov 10 15:21:45 EST 2004


On 2004-11-10, Gandalf <gandalf at geochemsource.com> wrote:

>>Woah!  This is all enlightening news to me.  Of course, what
>>little bit of socket level stuff I've done, I've always had a
>>"send/acknowledge" type protocol wrapped around.  I guess I've
>>just been lucky so far :-).
>
> Oh yeah. I did the same and I realized that the response time
> can be very long.

For a badly designed protocol, it can.

> I had to reconsider my protocol, and use as few send/ack pairs
> as possible. No matter if you have a broadband connection or
> not - it can be VERY slow if your protocol uses many send/ack
> pairs.

The answer is to use a sliding window protocol.

-- 
Grant Edwards                   grante             Yow!  I'm having a
                                  at               RELIGIOUS EXPERIENCE... and
                               visi.com            I don't take any DRUGS



More information about the Python-list mailing list