Thank you for answer.
I think that this behaviour is approriate too, considering this.
However, something remains strange.
Because here, the message sent is just "TEST".
And the error is : "invalid character 'T' looking for beginning of value"
With such error, it should go forward anyway.
Unless the decoder just "give up".
And I don't get this error elsewhere.
It is not essential but it puzzles me.
Note : Never tried to sent something like : "{test:"
Le jeudi 19 janvier 2017 18:43:11 UTC+1, Jakob Borg a écrit :
You're decoding JSON objects from a stream. Knowing where the next object starts requires knowing where the current one ends. If the current JSON object can't be decoded, the decoder doesn't know where it ends, and it can't proceed to the next one.
Closing the connection is probably appropriate when the other side sends something that cannot be decoded.
//jb