mirror of
https://github.com/aria2/aria2.git
synced 2026-04-02 02:38:50 +00:00
refactor-wintls-write
We re-wrote WinTLSSession::writeData. The major points are: * Buffer is now preallocated once handshake is finished. Previously, they are allocated each time when we send one TLS record. * Schannel uses header, body and trailer for each secBuffer. Now we send them off at once using WSASend which is windows counterpart of sendv. Previously, we do memmove if some of them are truncated. * We don't try to send application data in WinTLSSession::closeConnection, since semantically we need same application data used to create TLS record before. Using 0 length data to finish sending buffered data looks like a hack.
…
…
…
See README.rst
Languages
C++
94.2%
C
3.7%
M4
1%
Makefile
0.8%
Shell
0.2%