Partial messages problem with Java non-blocking socket communication
Re: Partial messages problem with Java non-blocking socket communication
Re: Partial messages problem with Java non-blocking socket communication
Could you post your code? It's kind of hard for us to figure out what's wrong without it.
Re: Partial messages problem with Java non-blocking socket communication
Re: Partial messages problem with Java non-blocking socket communication
Quote:
partial message exception
Can you post the full text of the message so we can research it?
Who generates the message?
Quote:
java non-blocking socket
Can you give me the class/method for a java non-blocking socke?
rbuf.get(b, 0, n);
dataBuffer.put(b);
Does the get() method return the number of bytes read? Can it be less than n?
Re: Partial messages problem with Java non-blocking socket communication
Re: Partial messages problem with Java non-blocking socket communication
@perl0101 when you post code place it between the tags in helloworlds signature.
Re: Partial messages problem with Java non-blocking socket communication
Re: Partial messages problem with Java non-blocking socket communication
Your posted error message says that there is a missing tag in the data.
Was the tag in the data being sent?
If it was, can you look at the received data and see what is missing? Or what was extra that confused the parser.
What tests do you do to see that the data that was sent, was received?
For example have a log on both ends that records the number of bytes sent on the sending side and the number received on the receiving side. Are there differences in the two logs?
Are there more or less bytes received than sent?
Re: Partial messages problem with Java non-blocking socket communication
Re: Partial messages problem with Java non-blocking socket communication
Can you dump for viewing the records with missing/extra data to see what is happening?
how do you know that "messages can not be received completely"?
Would bad data in the middle or extra data in the middle also case the parser to fail?
Re: Partial messages problem with Java non-blocking socket communication
Re: Partial messages problem with Java non-blocking socket communication
Sorry, I've no idea about how your programs work.
What are in the additional 1476 bytes that machine B reads?
Does it show any relationship to the 6526 bytes sent earlier?
Re: Partial messages problem with Java non-blocking socket communication
Re: Partial messages problem with Java non-blocking socket communication
Hard to tell what is happening from here.
Good luck with the project.