summaryrefslogtreecommitdiffstats
path: root/src/notification_proxy.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-07-19 00:06:38 +0700
committerGravatar Nikias Bassen2019-07-19 01:11:09 +0700
commitf52584e7310ad9af414cdd22cbfad81d53417c22 (patch)
treeae4488955b67b676ca5735d622083746c339ce96 /src/notification_proxy.h
parent2332655423c1616d8e37ece7f33e98be0e218504 (diff)
downloadlibimobiledevice-f52584e7310ad9af414cdd22cbfad81d53417c22.tar.gz
libimobiledevice-f52584e7310ad9af414cdd22cbfad81d53417c22.tar.bz2
OpenSSL: Use SSL_pending() to determine if we want a select() before SSL_read()
In order to obey the timeout in idevice_connection_receive_timeout(), we are using select() via socket_check_fd(). However, the SSL bio might have buffered more bytes than actually requested upon a call to SSL_read(), so in the next call to idevice_connection_receive_timeout() a select() would not find the fd being ready to read, and make it fail with an error, after the specified timeout is reached. With the help of SSL_pending() we can now skip calling select() so that SSL_read() will directly be called again.
Diffstat (limited to 'src/notification_proxy.h')
0 files changed, 0 insertions, 0 deletions