Describe the bug
According to the docs, when a connection has been made in file/message mode, srt_recv should return SRT_ERROR and set SRT_ELARGEMSG when a message will not entirely fit in the provided buffer.
To Reproduce
Steps to reproduce the behavior:
- Create connection in file/message mode.
- Send large message to receiver
- Call
srt_recv with a buffer too small to contain the entire message.
- Verify
SRT_ERROR is not returned.
Expected behavior
SRT_ERROR should be returned and SRT_ELARGEMSG should be returned from srt_getlasterror.
Additional context
Additionally, the table entry for SRT_ELARGEMSG under srt_recv mentions the sending buffer, although that's not relevant for receiving.
Describe the bug
According to the docs, when a connection has been made in file/message mode,
srt_recvshould returnSRT_ERRORand setSRT_ELARGEMSGwhen a message will not entirely fit in the provided buffer.To Reproduce
Steps to reproduce the behavior:
srt_recvwith a buffer too small to contain the entire message.SRT_ERRORis not returned.Expected behavior
SRT_ERRORshould be returned andSRT_ELARGEMSGshould be returned fromsrt_getlasterror.Additional context
Additionally, the table entry for
SRT_ELARGEMSGundersrt_recvmentions the sending buffer, although that's not relevant for receiving.