]> jfr.im git - solanum.git/commit
MbedTLS: Treat 0 bytes read/written to socket properly
authorAaron Jones <redacted>
Fri, 9 Sep 2016 01:46:20 +0000 (01:46 +0000)
committerAaron Jones <redacted>
Fri, 9 Sep 2016 01:47:18 +0000 (01:47 +0000)
commit73c486c7a5c153e4dad0a496b5f072ee288d4fc4
tree9ca299b0a745d62349840f640acf56ad969be16b
parent72725187951084aca48cedef93f148ede03c48b9
MbedTLS: Treat 0 bytes read/written to socket properly

At the moment, if a link quits in just the right (wrong [1]) way,
the quit reason will resemble:

    <-- foo (~bar@baz) has quit (Read error: (-0x0) )

This should resolve that.

[1] Peers should send a close_notify alert before abruptly shutting
    down their socket. This will result in a sane quit message:

    <-- foo (~bar@baz) has quit (Read error: (-0x7880) SSL -
    The peer notified us that the connection is going to be closed)

[ci skip]
librb/src/mbedtls.c