summaryrefslogtreecommitdiff
path: root/shared-module
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-11-24 18:14:22 -0800
committerScott Shawcroft <scott@tannewt.org>2020-11-24 18:14:22 -0800
commit9a692c3222013efdbcedea95cadf29c0379ca17c (patch)
tree251917b9e02effaea5c623434231d6aea12cd06c /shared-module
parente778fc1f876116fd8f07b95f9eb8439745988fba (diff)
Exit faster on recv when TLS connection closed
When a TLS connection is closed by the server it usually sends a notice. We see this incoming byte with lwip_ioctl and try to read it. The read returns 0 but we keep trying anyway. Now, we quit trying when we get zero back. If the connection was still alive it'd either read a byte or delay until a byte could be read.
Diffstat (limited to 'shared-module')
0 files changed, 0 insertions, 0 deletions