Skip to content

Commit 346725c

Browse files
rinneintelfx
authored andcommitted
Fix dragging OOB send buffer in case of idle connection
Signed-off-by: Timo J. Rinne <tri@iki.fi>
1 parent b0c09be commit 346725c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/network/transportsender-impl.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ void TransportSender<MyState>::tick( void )
193193
}
194194

195195
if ( diff.empty() ) {
196-
if ( (now >= next_ack_time) ) {
196+
if ( (now >= next_ack_time) || ((now >= next_send_time) && oob()->has_output()) ) {
197197
send_empty_ack();
198198
mindelay_clock = uint64_t( -1 );
199199
}
@@ -205,8 +205,6 @@ void TransportSender<MyState>::tick( void )
205205
/* Send diffs or ack */
206206
send_to_receiver( diff );
207207
mindelay_clock = uint64_t( -1 );
208-
} else if ( oob()->has_output() && ((now >= next_send_time) || (now >= next_ack_time)) ) {
209-
send_empty_ack();
210208
}
211209
}
212210

0 commit comments

Comments
 (0)