Skip to content
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

Fix extra ack being sent after a connection is established #2832

Merged
merged 8 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3555,6 +3555,7 @@ void srt::CUDT::startConnect(const sockaddr_any& serv_addr, int32_t forced_isn)
m_iISN = m_ConnReq.m_iISN = forced_isn;

setInitialSndSeq(m_iISN);
resetBufferWasFull();

// Inform the server my configurations.
CPacket reqpkt;
Expand Down
4 changes: 4 additions & 0 deletions srtcore/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,10 @@ class CUDT
CallbackHolder<srt_listen_callback_fn> m_cbAcceptHook;
CallbackHolder<srt_connect_callback_fn> m_cbConnectHook;

void resetBufferWasFull() {
m_bBufferWasFull = FALSE;
maxsharabayko marked this conversation as resolved.
Show resolved Hide resolved
}

// FORWARDER
public:
static int installAcceptHook(SRTSOCKET lsn, srt_listen_callback_fn* hook, void* opaq);
Expand Down
Loading