Skip to content

Commit

Permalink
Merge pull request #395 from weixinwei/pending_sent
Browse files Browse the repository at this point in the history
re-sent pending pdu after credits is enough
  • Loading branch information
sahlberg authored Jan 24, 2025
2 parents 36314be + 05abbf5 commit 306f623
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/socket.c
Original file line number Diff line number Diff line change
@@ -458,6 +458,8 @@ static int smb2_read_data(struct smb2_context *smb2, read_func func,

if (!smb2_is_server(smb2)) {
smb2->credits += smb2->hdr.credit_request_response;
/* Got credit, recheck if there are pending pdu to be sent. */
smb2_change_events(smb2, smb2->fd, smb2_which_events(smb2));
}

if (!smb2_is_server(smb2) && !(smb2->hdr.flags & SMB2_FLAGS_SERVER_TO_REDIR)) {

0 comments on commit 306f623

Please sign in to comment.