[BUG] PRE restriction is not applied on a listener socket #1873
Labels
[API]
Area: Changes in SRT library API
[core]
Area: Changes in SRT library core
Priority: High
Type: Bug
Indicates an unexpected problem or unintended behavior
Milestone
After PR #1776 socket options with PRE restriction can be applied on a listener socket even after
srt_listen
was called.E.g.
SRTO_LATENCY
,SRTO_TSBPDMODE
etc. can be changed while listening for incoming connections. As well as other socket options with PRE binding (see APISocketOptions.md).Example test case fails with the current master and succeeds with SRT v1.4.2.
SRT v1.4.2 does not allow to set an option with PRE restriction if a socket has
m_bOpened
set totrue
. E.g.SRTO_LATENCY
,SRTO_TSBPDMODE
,SRTO_RCVBUF
, etc.The latest master checks only if
m_bConnected
orm_bConnecting
is set to true. Neitherm_bOpened
, norm_bListening
is checked.Affected SRT versions
The text was updated successfully, but these errors were encountered: