-
Harin Vadodaria authored
Description: yaSSL uses vio_read/vio_write for receiving/sending data from/to socket. vio_read employs customized timeout in case of EAGAIN/EWOULDBLOCK and returns -1. However, yaSSL function processReply does not treat this as error in reading data and simply returns. This causes upper layer attempting to read until socket becomes invalid. This patch fixes this issue by raising an error when vio_read reports timeout.
Harin Vadodaria authoredDescription: yaSSL uses vio_read/vio_write for receiving/sending data from/to socket. vio_read employs customized timeout in case of EAGAIN/EWOULDBLOCK and returns -1. However, yaSSL function processReply does not treat this as error in reading data and simply returns. This causes upper layer attempting to read until socket becomes invalid. This patch fixes this issue by raising an error when vio_read reports timeout.
Loading