Skip to content

Commit

Permalink
re-sent pending pdu after credits is enough
Browse files Browse the repository at this point in the history
Signed-off-by: weixinwei <weixw3@lenovo.com>
  • Loading branch information
weixinwei committed Jan 24, 2025
1 parent 36314be commit 05abbf5
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
Expand Up @@ -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)) {
Expand Down

0 comments on commit 05abbf5

Please sign in to comment.