Kiran i'rta: > Hello Everybody! > I am writing a networking application in python for a small piece of > hardware, in which there could sometimes be timeouts. I am using > sockets to communicate to this device. Data that is sent to the device > is instructions for that piece of hardware, and data recieved is just > responses from that hardware. > When a timeout happens, for some reason extra data is stored inside > the buffer, so when the timeout is over, that extra data (remember this > data is instructions) is executed by the hardware, which I don't want. > Did you try setsockopt and TCP_NODELAY? That can prevent buffering in some cases.
Laszlo -- http://mail.python.org/mailman/listinfo/python-list