Itzik Levi wrote:
I'll recap the setup:
- Non blocking sockets.
- poll(thread 1).
OK, poll is pretty new. There might be problems of course, as it's
new code and also select has change a bit due to adding poll
support.
- read/write in 2 different threads, but not in parallel,
mutex protected.
- poll may occur in parallel to read/write.
But the original problem, as described, is the matter of
tcp stream corruption.
I still don't get your test setup. You said the final thing is
PPPoS, but you're having tcp streams for now? Is your test prepared
for retransmissions? Because these are expected if you drop TX
bytes!
Simon
|