Problem: read_block () cannot return 0 bytes as a valid read block, as it is interpreted as to send a return code only (message: reply code). In general, read_block would send more than 0 bytes and send the correct frame (message: reply code, return code and data).
This causes the client side to interpret the incoming message as invalid, which is not correct behavior.
Issue by lerwys Saturday Dec 20, 2014 at 19:08 GMT Originally opened as https://github.com/lnls-dig/bpm-sw/issues/64
Problem: read_block () cannot return 0 bytes as a valid read block, as it is interpreted as to send a return code only (message: reply code). In general, read_block would send more than 0 bytes and send the correct frame (message: reply code, return code and data).
This causes the client side to interpret the incoming message as invalid, which is not correct behavior.