You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation seems to assume that available bytes in the TCP buffer always represent whole messages (i.e. ending with a newline) but this cannot be guaranteed in general.
The easiest way to fix this is simply to create a StreamReader directly on top of the TCP stream and just ReadLine in the task loop. Internally the reader will take care of managing all the stream state automatically.
The text was updated successfully, but these errors were encountered:
The current implementation seems to assume that available bytes in the TCP buffer always represent whole messages (i.e. ending with a newline) but this cannot be guaranteed in general.
pluma-experiments/Workflows/Extensions/EmpaticaClient.cs
Line 59 in 6271b02
The easiest way to fix this is simply to create a
StreamReader
directly on top of the TCP stream and justReadLine
in the task loop. Internally the reader will take care of managing all the stream state automatically.The text was updated successfully, but these errors were encountered: