Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sequencial Data Delivery Problem

poonks Arasu
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having a client socket from where i communicate with server socket.
The process flow is as follows
1) open socket
2) write data into server socket
3) Read data
4) write acknowledgement
5) Close socket
The whole process is looped again and again depending on some parameter.
SomeTimes(not all the time) we found from the server socket program during the loop,the data of second loop arrives the server socket before the acknowledgement(write) of the first loop arrives although second loop is started after closing the socket of the first loop.
Can anyone please explain why this happens and any solution to avoid this without modifying server socket.
Thanks in advance,
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic