-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
with fec,the max playload to 1452bytes #1322
Comments
Did you set the payload size using Might matter the order in which you set options. When you set payloadsize first and packetfilter second, the packetfilter setting should cut the payloadsize. In the opposite order, it should disallow you to set payloadsize that big. Note also that there's #1130 PR to remove this option completely. The actual maximum payload size is then managed internally and allowed as maximum in the beginning. |
with send 1456 bytes payload, fec rebuild will report error. |
Yes, definitely this is an internal error that shouldn't happen. How did you configure the socket then? For me it looks as if the payload size was somehow allowed to be set to 1456, which shouldn't be allowed when you also configured FEC. Some check looks like have been bypassed. |
@chllcy Could you please describe the exact way how you made the test? It looks for me as if you have forcefully set the payloadsize option to 1456 on the sender, and then you tried to send 1456 bytes of data per packet. This should be rejected as error, and looks like it somehow didn't. It would be nice if you could repeat this test with using the version from #1130 PR at least on the sender side and confirm or deny as to whether this fixes the problem. |
yes I hard code for 1456 on the sender and receiver。is it necessary to fix this problem? |
What should happen is that when you configure FEC on the connection and try to send 1456 bytes through that connection, your sending function should report error and reject sending. The version from that PR simply disables the |
The same issue. I set The receiver receive no video frame, and complaint that "payload size: 1456 exceeds maximum allowed 1452". log : E [SrtLogCallback:42]:[checkTransArgs#119]14:46:11.044730/VideoEncoder*E:SRT.cc: LiveCC: payload size: 1456 exceeds maximum allowed 1452
E [input:89]:srt_sendmsg failed, reason: Operation not supported: Incorrect use of Message API (sendmsg/recvmsg)
E [SrtLogCallback:42]:[checkTransArgs#119]14:46:11.045254/VideoEncoder*E:SRT.cc: LiveCC: payload size: 1456 exceeds maximum allowed 1452
E [input:89]:srt_sendmsg failed, reason: Operation not supported: Incorrect use of Message API (sendmsg/recvmsg) |
Is the same thing happening if you don't change the |
the issues fixed with no more than 1456-4 bytes payload. it works. I will test tomorrow if not change |
There's #2677 prepared to fix some of these problems. This constant - The actual maximum payload size should be calculated this way:
Without these optionals you have 1456 for IPv4 and 1444 for IPv6. |
Hi,I test with fec,but encounter problem with playload size。send with 1456 bytes。1500MTU。
the log below:
Due to filter-required extra 4 bytes, SRTO_PAYLOADSIZE fixed to 1452 bytes
is it need to change max payload size(m_iMaxSRTPayloadSize) to 1452 if with fec feature at handshake?
The text was updated successfully, but these errors were encountered: