Skip to content

Commit 080324c

Browse files
atomtdavem330
authored andcommitted
net/tls: Fix connection stall on partial tls record
In the case of writing a partial tls record we forgot to clear the ctx->in_tcp_sendpages flag, causing some connections to stall. Fixes: c212d2c ("net/tls: Don't recursively call push_record during tls_write_space callbacks") Signed-off-by: Andre Tomt <andre@tomt.net> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 53bc017 commit 080324c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/tls/tls_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ int tls_push_sg(struct sock *sk,
135135
offset -= sg->offset;
136136
ctx->partially_sent_offset = offset;
137137
ctx->partially_sent_record = (void *)sg;
138+
ctx->in_tcp_sendpages = false;
138139
return ret;
139140
}
140141

0 commit comments

Comments
 (0)