Skip to content

Commit 306f623

Browse files
authored
Merge pull request #395 from weixinwei/pending_sent
re-sent pending pdu after credits is enough
2 parents 36314be + 05abbf5 commit 306f623

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: lib/socket.c

+2
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,8 @@ static int smb2_read_data(struct smb2_context *smb2, read_func func,
458458

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

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

0 commit comments

Comments
 (0)