Hi,

I have a strange problem where QTcpSocket sends my data twice if I call flush() following a write(). If I don't call flush the data is transmitted correctly and visible in my netcat capture. If I call flush, i see the data twice. The only time I don't have this problem while calling flush is when I wait an extended period of time before running my application a second time. I can't imagine my data is getting caught up in some OS buffer, but I have no idea what's going on. Anyone have an idea?

Thanks.