| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix compile error without TLS support | Tatsuhiro Tsujikawa | 2016-02-23 | 1 | -0/+4 |
| | | |||||
| * | Don't inherit file descriptor to child process | Tatsuhiro Tsujikawa | 2016-02-08 | 1 | -0/+3 |
| | | | | | | | For non-Mingw32 build, set FD_CLOEXEC to file descriptors which live beyond function scope. For Mingw32 build, just pass false to bInheritHandles parameter of CreateProcessW. | ||||
| * | WinTLS: Fix hang because of buffered received data | Tatsuhiro Tsujikawa | 2016-01-30 | 1 | -0/+9 |
| | | | | | | | | | | | | | | 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. | ||||
| * | mingw: Add formatLastError as wrapper function for FormatMessage | Tatsuhiro Tsujikawa | 2016-01-28 | 1 | -6/+5 |
| | | |||||
| * | Fix compile error | Tatsuhiro Tsujikawa | 2016-01-16 | 1 | -0/+1 |
| | | |||||
| * | Refactor SocketCore::getPeerInfo, getAddrInfo to return Endpoint object | Tatsuhiro Tsujikawa | 2016-01-09 | 1 | -12/+7 |
| | | |||||
| * | Define SockAddr and use it instead of raw std::pair | Tatsuhiro Tsujikawa | 2016-01-09 | 1 | -31/+25 |
| | | |||||
| * | Try all found address set to bind sockets with --multiple-interface | Tatsuhiro Tsujikawa | 2016-01-09 | 1 | -18/+25 |
| | | | | | Fixes GH-523 | ||||
| * | make clang-format using clang-format-3.6 | Tatsuhiro Tsujikawa | 2015-12-27 | 1 | -421/+421 |
| | | |||||
| * | Add --socket-recv-buffer-size option | Tatsuhiro Tsujikawa | 2015-11-28 | 1 | -0/+41 |
| | | | | | | | | | Set the maximum socket receive buffer in bytes. Specifing 0 will disable this option. This value will be set to socket file descriptor using SO_RCVBUF socket option with setsockopt() call. See GH-487 about the usecase of this option | ||||
| * | Use user-defined literal for k, m, and g (powers of 1024) | Tatsuhiro Tsujikawa | 2015-06-21 | 1 | -1/+1 |
| | | |||||
| * | Use std::make_shared | Tatsuhiro Tsujikawa | 2015-06-11 | 1 | -1/+1 |
| | | |||||
| * | Arrange #ifdef guard so that formatter does not get fooled | Tatsuhiro Tsujikawa | 2015-05-16 | 1 | -27/+28 |
| | | |||||
| * | Add --ssh-host-key-md option | Tatsuhiro Tsujikawa | 2015-05-16 | 1 | -1/+15 |
| | | | | | | | | | | Set checksum for SSH host public key. Use same syntax with --checksum option. TYPE is hash type. The supported hash type is sha-1 or md5. DIGEST is hex digest. For example: sha-1=b030503d4de4539dc7885e6f0f5e256704edf4c3. This option can be used to validate server's public key when SFTP is used. If this option is not set, which is default, no validation takes place. | ||||
| * | fix build error without libssh2 | multisnow | 2015-05-14 | 1 | -2/+4 |
| | | |||||
| * | sftp: Seek to the correct position to resume, fix slow start of transfer | Tatsuhiro Tsujikawa | 2015-05-12 | 1 | -0/+7 |
| | | |||||
| * | sftp: basic download works | Tatsuhiro Tsujikawa | 2015-05-12 | 1 | -0/+40 |
| | | | | | | | This commits implements basic downloading feature for sftp URI. This includes segmented downloads, and connection (sftp session) pooling. Download via HTTP proxy has not been implemented yet. | ||||
| * | Add basic ssh/sftp code to SocketCore and introduce SSHSession | Tatsuhiro Tsujikawa | 2015-05-10 | 1 | -1/+120 |
| | | | | | | | | | | | We use libssh2 to implement sftp feature. SSHSession is closely designed to TLSSession, but it differs in several aspects. In this code, we only implements read part of sftp, since aria2 won't offer uploading feature. Adding SSH/sftp to SocketCore is a bit bloat. But by doing this we can reuse DownloadCommand, without mostly no modification. We can just create SSHDownloadCommand by inheriting it, just like existing ftp. | ||||
| * | multiple interface support for link aggregation | Sarim Khan | 2015-04-21 | 1 | -0/+42 |
| | | | | | fix: wrong variable | ||||
| * | Fixed some typos in code comments | Dan Fandrich | 2015-01-16 | 1 | -1/+1 |
| | | |||||
| * | Fix SSLv3 warnings being issued on connection reuse. | Nils Maier | 2014-12-30 | 1 | -41/+73 |
| | | | | | | And also improve tlsHandshake code a bit in the process, mostly by being more explicit about error conditions. | ||||
| * | Refine messages to include peer info | Nils Maier | 2014-12-14 | 1 | -2/+15 |
| | | |||||
| * | Move warn logic into SocketCore | Nils Maier | 2014-12-14 | 1 | -2/+15 |
| | | | | | | Also fiddle a bit with the WinTLS implementation, forcing "strong" crypto only for > SSLv3. | ||||
| * | Use std::make_shared and make_unique where possible, part 2 | Tatsuhiro Tsujikawa | 2014-09-13 | 1 | -1/+1 |
| | | |||||
| * | Ignore error when setting DSCP value | Tatsuhiro Tsujikawa | 2014-03-30 | 1 | -6/+14 |
| | | | | | | | Setting DSCP is additional feature and failure to enable it should not abort download entirely. This change fixes the bug that windows build does not perform bittorrent downloads. | ||||
| * | Added DSCP support for IPv6 sockets | Alexander Amanuel | 2014-03-12 | 1 | -1/+9 |
| | | |||||
| * | Refactored DSCP-related code a bit | Alexander Amanuel | 2014-01-28 | 1 | -2/+3 |
| | | |||||
| * | Added DSCP support | Alexander Amanuel | 2014-01-28 | 1 | -0/+5 |
| | | |||||
| * | Remove log message "TLS else" as this function called repeatedly | Tatsuhiro Tsujikawa | 2013-10-08 | 1 | -1/+0 |
| | | |||||
| * | Don't log "TLS Handshaking" twice or more | Tatsuhiro Tsujikawa | 2013-10-07 | 1 | -1/+1 |
| | | |||||
| * | Implement WinTLS | Nils Maier | 2013-09-30 | 1 | -1/+4 |
| | | |||||
| * | More auto-converts by cpp11-migrate | Nils Maier | 2013-09-20 | 1 | -5/+5 |
| | | |||||
| * | More code cleanups | Nils Maier | 2013-08-21 | 1 | -173/+156 |
| | | |||||
| * | Convert to autos and ranged loops | Nils Maier | 2013-08-21 | 1 | -4/+2 |
| | | |||||
| * | Convert most 0/NULL pointers to nullptr | Nils Maier | 2013-08-20 | 1 | -16/+16 |
| | | | | | Courtesy of llvm cpp11-migrate 3.3 | ||||
| * | Remove auto_delete in favor of std::unique_ptr | Tatsuhiro Tsujikawa | 2013-06-22 | 1 | -7/+14 |
| | | |||||
| * | Require -std=c++11 and use std::shared_ptr instead of SharedHandle | Tatsuhiro Tsujikawa | 2013-06-22 | 1 | -6/+6 |
| | | |||||
| * | Merge branch 'libuv-eventpoll' of https://github.com/nmaier/aria2 into ↵ | Tatsuhiro Tsujikawa | 2013-04-30 | 1 | -1/+1 |
| |\ | | | | | | | nmaier-libuv-eventpoll | ||||
| | * | LibUV: Implement LibuvEventPoll | Nils Maier | 2013-04-10 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | LibUV event will use the best available polling method on a system, kind of like aria2 does already with the different *EventPoll implementations. However, libuv may support different/newer polling mechanisms; for example on Windows it will use IO Completion Ports which are superior to select() ;) | ||||
| * | | Fix compile error without SSL/TLS lib | Tatsuhiro Tsujikawa | 2013-04-14 | 1 | -0/+6 |
| |/ | |||||
| * | AppleTLS: Implement AppleTLS and Apple Message Digest | Nils Maier | 2013-04-05 | 1 | -1/+1 |
| | | |||||
| * | Abstract TLS session implementation | Tatsuhiro Tsujikawa | 2013-04-03 | 1 | -406/+59 |
| | | | | | | Now TLS session object is abstracted as TLSSession class. Currently, we have GNUTLS and OpenSSL implementations. | ||||
| * | mingw: Ignore tunnel interface and address in 169.254.* | Tatsuhiro Tsujikawa | 2013-03-31 | 1 | -2/+17 |
| | | |||||
| * | Use GetAdaptersAddresses for Mingw | Tatsuhiro Tsujikawa | 2013-03-31 | 1 | -2/+71 |
| | | |||||
| * | Check non-loopback (and non-linklocak for IPv6) address is configured | Tatsuhiro Tsujikawa | 2013-03-31 | 1 | -0/+80 |
| | | | | | | | Issue A record query only when non-loopback IPv4 address is configured. Likewise, issue AAA record query only when non-loopback and non-linklocak IPv6 address is configured. | ||||
| * | Fix failure to set TCP_NODELAY on Windows | Tatsuhiro Tsujikawa | 2013-02-03 | 1 | -1/+5 |
| | | | | | | On Windows setting TCP_NODELAY after non-blocking connect fails at least on Windows 7. | ||||
| * | Disable TCP_NODELAY for BitTorrent | Tatsuhiro Tsujikawa | 2013-01-15 | 1 | -2/+0 |
| | | | | | To make Request messages more often packed into 1 packet. | ||||
| * | Made SocketCore::readData() and readDataFrom() take void* | Tatsuhiro Tsujikawa | 2013-01-11 | 1 | -4/+7 |
| | | |||||
| * | Vectorized write for SocketBuffer to avoid small packet | Tatsuhiro Tsujikawa | 2013-01-11 | 1 | -4/+49 |
| | | |||||
| * | mingw32: Use LANG_ENGLISH for error messagerelease-1.16.1 | Tatsuhiro Tsujikawa | 2012-12-27 | 1 | -1/+1 |
| | | |||||
