Skip to content

Commit

Permalink
net/tls: Fix connection stall on partial tls record
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andre Tomt authored and David S. Miller committed May 8, 2018
1 parent 53bc017 commit 080324c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/tls/tls_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ int tls_push_sg(struct sock *sk,
offset -= sg->offset;
ctx->partially_sent_offset = offset;
ctx->partially_sent_record = (void *)sg;
ctx->in_tcp_sendpages = false;
return ret;
}

Expand Down

0 comments on commit 080324c

Please sign in to comment.