Generic protocol cannot handle responses starting with bytes >0x7F

Issue #308 resolved
Robert Nelson created an issue

If the generic SEND/EXPECT protocol is used, and the service under test responds with a message that has a leading byte that is greater than 0x7F, the EXPECT matching fails with the error:

GENERIC: error receiving data -- Resource temporarily unavailable.

This is caused because the integer return value from Socket_readByte() is truncated into a byte before the error condition is checked. This makes high bytes indistinguishable from an error code.

Comments (5)

  1. Log in to comment