The code looks okay at first glance. I'm suspicious about your sending instead. Are you sure you are sending end markers in both cases, for example?
The code looks okay at first glance. I'm suspicious about your sending instead. Are you sure you are sending end markers in both cases, for example?