Tatsuhiro Tsujikawa
a6c2ad53bf
Rewritten UriListParser using BufferedFile
2011-08-07 01:05:02 +09:00
Tatsuhiro Tsujikawa
945012a32f
Removed unused header
2011-08-07 00:37:54 +09:00
Tatsuhiro Tsujikawa
1f710d29c1
Rewritten SessionSerializer using BufferedFile
2011-08-07 00:36:44 +09:00
Tatsuhiro Tsujikawa
6034474550
Don't allow copying BufferedFile
2011-08-07 00:36:31 +09:00
Tatsuhiro Tsujikawa
190d170076
Rewritten ServerStatMan using BufferedFile.
2011-08-07 00:10:53 +09:00
Tatsuhiro Tsujikawa
7f3d027b83
Removed feof from operator unspecified_bool_type. Added eof().
...
In BufferedFile, removed feof from operator unspecified_bool_type. EOF
can be queried separately using newly added eof().
2011-08-07 00:06:32 +09:00
Tatsuhiro Tsujikawa
f6472abae8
Compare 16bytes of header text.
2011-08-06 23:04:06 +09:00
Tatsuhiro Tsujikawa
8f93855bbd
Rewritten ProtocolDetector using BufferedFile
2011-08-06 22:43:24 +09:00
Tatsuhiro Tsujikawa
c553d92f45
Rewritten NsCookieParser using BufferedFile
2011-08-06 21:59:06 +09:00
Tatsuhiro Tsujikawa
f38c2d2012
Rewritten Netrc using BufferedFile.
2011-08-06 21:57:38 +09:00
Tatsuhiro Tsujikawa
c9f8cf75bf
Rewritten CookieStorage using BufferedFile
2011-08-06 21:53:59 +09:00
Tatsuhiro Tsujikawa
410d88710b
Rewritten DHTRoutingTable I/O using BufferedFile.
2011-08-06 21:35:39 +09:00
Tatsuhiro Tsujikawa
ef27370243
Use BufferedFile in DefaultBtProgressInfoFile
2011-08-06 21:27:17 +09:00
Tatsuhiro Tsujikawa
6cb91cae88
Added fopen/fread/fwrite/fgets wrapper class.
2011-08-06 21:17:36 +09:00
Tatsuhiro Tsujikawa
733ff2c05a
Rewritten NsCookieParser using stdio instead of stream.
2011-08-05 23:35:00 +09:00
Tatsuhiro Tsujikawa
07874696c5
Rewritten Netrc using stdio instead of stream.
2011-08-05 23:33:30 +09:00
Tatsuhiro Tsujikawa
13158de0d3
Removed unused header fstream from DHTSetup
2011-08-05 22:45:34 +09:00
Tatsuhiro Tsujikawa
168094560d
Rewritten CookieStorage using stdio instead of stream
2011-08-05 22:44:54 +09:00
Tatsuhiro Tsujikawa
292bbb3679
Added log messages to DHTRoutingTable IO routines.
2011-08-05 22:23:53 +09:00
Tatsuhiro Tsujikawa
dea7a7969c
Rewritten DHTRoutingTableSerializer using stdio instead of stream.
2011-08-05 22:15:55 +09:00
Tatsuhiro Tsujikawa
f141cd4228
Rewritten DHTRoutingTableDeserializer using stdio instead of stream.
2011-08-05 21:50:11 +09:00
Tatsuhiro Tsujikawa
5eb338ad87
Rewritten DefaultBtProgressInfoFile using stdio instead of stream.
2011-08-05 18:34:07 +09:00
Tatsuhiro Tsujikawa
3879da592d
In MinGW32, open file with UNICODE filename and print them in ANSI.
2011-08-04 21:43:02 +09:00
Tatsuhiro Tsujikawa
45686860e1
Updated bash_completion
2011-08-02 21:28:32 +09:00
Tatsuhiro Tsujikawa
a2669c3097
Updated Chinese (Simplified), Ukrainian and Brazilian Portuguese
...
translation. Thanks to all translators.
2011-08-02 21:25:38 +09:00
Tatsuhiro Tsujikawa
cb14342fc3
Small updates.
2011-08-02 21:21:55 +09:00
Tatsuhiro Tsujikawa
2176066c08
Documented Metalink/HTTP in README.asciidoc
2011-07-31 21:47:56 +09:00
Tatsuhiro Tsujikawa
6e1e481be5
Make --metalink-location option available with --disable-metalink
2011-07-31 21:46:07 +09:00
Tatsuhiro Tsujikawa
bd39562939
Updated NEWS for 1.12.1 release.
2011-07-31 18:55:24 +09:00
Tatsuhiro Tsujikawa
afdbda8f10
Initialize libgcrypt.
...
We relied initialization of libgcrypt on gnutls_global_init(), but
recent change in gnutls, which changes default crypto backend from
libgcrypt to libnettle, leaves libgcrypt uninitialized if it uses
libnettle as backend(and this is likely because libnettle is chosen by
default). To fix this issue, we simply initialize libgcrypt on our
own.
2011-07-30 17:36:39 +09:00
Tatsuhiro Tsujikawa
70eeebfae9
Retry DHT get_peers task if the number of peers in PeerStorage is less
...
than max peers.
Added virtual size_t countPeer() const to PeerStorage.
2011-07-29 23:49:25 +09:00
Tatsuhiro Tsujikawa
aa13ff5f51
Throw exception with error message if gnutls_global_init() failed.
2011-07-29 22:06:02 +09:00
Tatsuhiro Tsujikawa
932c258755
Added log message when checksum validation failed.
2011-07-28 00:00:01 +09:00
Tatsuhiro Tsujikawa
4ea28cb837
Don't send basic auth header to service operated on differenct port.
...
When --http-auth-challenge=true, aria2 only sends basic auth header
when requested. Old implementation sends basic auth header to service
operated in different port in successive request. This change avoid
this bug.
2011-07-27 23:28:31 +09:00
Tatsuhiro Tsujikawa
02292feaba
Consistent naming scheme for hash type and digest for Piece.
2011-07-27 22:50:10 +09:00
Tatsuhiro Tsujikawa
03f0774482
Consistent naming scheme for hash type and digest for DownloadContext.
2011-07-27 22:44:30 +09:00
Tatsuhiro Tsujikawa
7b86b294c9
Consistent naming scheme for hash type and digest.
2011-07-27 21:44:54 +09:00
Tatsuhiro Tsujikawa
ce101f5ad2
Use HttpHeader::getIterator() instead of HttpHeader::get()
2011-07-27 21:15:54 +09:00
Tatsuhiro Tsujikawa
c536e460aa
Merge branch 'rfc6249'
2011-07-27 21:02:53 +09:00
Tatsuhiro Tsujikawa
a533437be6
Implemented Metalink/HTTP in HTTP download.
...
Link header fields from first Metalink server is utilized as described
in rfc6249. We only set digest from Digest header field to
DownloadContext only when PieceStorage is not initialized(in other
words, before file size is known). After PieceStorage is initialized,
Digest header field is used to check the value is the same in digest
in DownloadContext. Current implementation only handles
rel=duplicate.
2011-07-27 20:54:21 +09:00
Tatsuhiro Tsujikawa
67e91c3431
HttpResponse::getDigest() now returns all Digest.
...
In addition, HttpResponse::getMetalinkHttpEntries() does not check
validity of URI. It is checked when we add it to FileEntry.
2011-07-27 19:32:35 +09:00
Tatsuhiro Tsujikawa
7c317de4e7
Added Metalink/HTTP Link and Digest header field parser.
2011-07-26 23:41:21 +09:00
Tatsuhiro Tsujikawa
9ff60ac477
Added struct for Metalink/HTTP
2011-07-26 23:19:54 +09:00
Tatsuhiro Tsujikawa
3b9a751757
Lowcase PREF_METALINK_LOCATION before split.
2011-07-25 23:58:38 +09:00
Tatsuhiro Tsujikawa
5a4a627d72
Remove Metalink content-type after first server response.
...
We don't accept Metalink content-type after first server response.
2011-07-25 00:03:13 +09:00
Tatsuhiro Tsujikawa
9fc4384c13
Updated Russian translation of aria2 man page.
...
Thanks to ITriskTI for translation.
2011-07-24 23:36:49 +09:00
Tatsuhiro Tsujikawa
6f2b0a269d
Bump up version number to 1.12.1
2011-07-23 19:25:42 +09:00
Tatsuhiro Tsujikawa
a6b7ef5f07
Eliminated static variable from LpdReceiveMessageCommand.
...
BtRegistry now holds LpdMessageReceiver.
2011-07-22 00:41:45 +09:00
Tatsuhiro Tsujikawa
97f76b7cf4
Fixed the bug due to dangling pointers in RequestGroup.
...
RequestGroup holds a poitner to btRuntime_ and peerStorage_. After
removing them from BtRegistry, we failed to set 0 to them. When
program access them, it goes undefined world, such as random crash.
We found this bug when pasuing download and valgrind warned memory
corruption.
2011-07-21 23:59:44 +09:00
Tatsuhiro Tsujikawa
c58f736bb9
BtRegistry now holds BitTorrent TCP server port.
...
Because BitTorrent TCP server port is global configuration, it is not
preferable that per download resource BtRuntime holds it. We also
refactored and eliminated ugly static variable in PeerListenCommand.
If TCP port is necessary, we inject it to them directly.
2011-07-21 23:42:41 +09:00