mirror of
https://github.com/aria2/aria2.git
synced 2026-04-04 19:58:46 +00:00
cf2fa33fe0d73f7001d262beee5e8aba03544126
WinTLSSession buffers received decrypted data into its own buffer. If read is requested, it copies the data from its buffer. But if requested buffer size is less than decrypted buffer, some of the data is left in the buffer. Previously, we had no facility to check the existence of this pending data. If this data is the last requested data from remote server, we may end up waiting for read event even if we have already data in our buffer, which may cause hang. This commit fixes this issue by introducing function to return the buffered length in TLSSession. SocketCore also provides the same function, which delegates to TLSSession object.
…
…
…
See README.rst
Languages
C++
94.2%
C
3.7%
M4
1%
Makefile
0.8%
Shell
0.2%