I am also encountering the issue where two successive writes are picked up by second read.
Not surprisingly, the same answer applies to you.
In reply to Re^3: IO Socket buffer flushing
by ikegami
in thread IO Socket buffer flushing
by baldeep8
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |