Tatsuhiro Tsujikawa
b2f27e6548
Check !SocketRecvBuffer::bufferEmpty() in ctor.
...
Also treat !SocketRecvBuffer::bufferEmpty() as data is available.
2011-01-16 17:52:18 +09:00
Tatsuhiro Tsujikawa
e60181d1ad
Removed SocketCore::peekData()
2011-01-16 17:41:17 +09:00
Tatsuhiro Tsujikawa
629099d40d
Eliminated SocketCore::peekData() from HttpServer.
2011-01-16 17:27:01 +09:00
Tatsuhiro Tsujikawa
d030dd5a3f
Code cleanup
2011-01-16 17:26:46 +09:00
Tatsuhiro Tsujikawa
ea1b4b3ee5
Eliminated SocketCore::peekData() form HTTP/FTP downloads.
...
We introduced SocketRecvBuffer which buffers received bytes. Since
HTTP response header and response body are divided with \r\n, we have
to buffer up several bytes to find this delimiter. We use
SocketRecvBuffer to hold these bytes and only consumes header and
passes SocketRecvBuffer, which may contain head of response body, to
next Command. Since FTPConnection doesn't use SocketCore::peekData(),
we left it as is.
2011-01-16 16:55:41 +09:00
Tatsuhiro Tsujikawa
602a9d6ba3
Updated NEWS
2011-01-10 17:11:01 +09:00
Tatsuhiro Tsujikawa
772588e727
Updated Russian, Hungarian and Chinese (Simplified)
...
translation. Thanks to all translators.
2011-01-10 17:06:08 +09:00
Tatsuhiro Tsujikawa
627754e681
Updated po templates.
2011-01-10 17:05:07 +09:00
Tatsuhiro Tsujikawa
0ee2c1a65c
Updated for 1.10.9 release
2011-01-10 17:04:45 +09:00
Tatsuhiro Tsujikawa
91a4f2d210
Bump up version number to 1.10.9.
2011-01-10 12:51:52 +09:00
Tatsuhiro Tsujikawa
3e67079087
Rewritten NAT check handling.
...
We simplified PeerConnection::receiveHandshake().
DefaultBtMessageReceiver and PeerReceiverHandshakeCommand look
PeerConnection's buffer and do NAT check handling themselves.
2011-01-09 23:57:07 +09:00
Tatsuhiro Tsujikawa
1818f2ed55
Just preset IA to PeerConnection in receiver side.
...
Since initiator cannot send payload stream before reading step2 from
receiver, mseHandshake_->getBufferLength() should be 0.
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
320ca4c5a1
Throw exception if more than BtHandshakeMessage::MESSAGE_LENGTH is
...
buffered when receiving handshake. Detect preset buffer without
setting prevPeek_ = true.
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
e5c27034f3
Added assertion in shiftBuffer to check size.
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
02ca3ed0b7
Use refreshInterval_ as timeout value of event polling.
...
refreshInterval_ is now limited less than 1000ms.
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
781a4220fc
Bump up DHT version number to 3.
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
a2a91a2c74
Shorten MAX_BUFFER_LENGTH of MSEHandshake.
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
2ee68ec8ad
Drop connection if IA length > 68 (BtHandshakeMessage::MESSAGE_LENGTH).
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
acfb290eca
We don't need to call PeerConnection::sendPendingData() twice when
...
sending piece message.
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
3020087a75
Don't try legacy BitTorrent handshake when connection did not established.
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
ce2d401dce
Eliminated SocketCore::peekData from MSEHandshake.
2011-01-09 18:34:06 +09:00
Tatsuhiro Tsujikawa
c48db2cdf3
Fixed the bug that making directory fails on Windows OS.
...
On Windows, stat("C:/test/", ...) fails because of trailing "/".
To handle "\" as path separator, "\" are replaced with "/"
beforehand.
2011-01-09 18:27:08 +09:00
Tatsuhiro Tsujikawa
a9f734218f
Don't send announce_peer message with empty token in
...
DHTPeerLookupTask. Replace old node ID with new node ID when response
message is received in DHTAbstractNodeLookupTask.
2011-01-07 00:22:43 +09:00
Tatsuhiro Tsujikawa
2dba2f86a4
Drop old node from DHT routing table if node ID has changed.
2011-01-07 00:20:58 +09:00
Tatsuhiro Tsujikawa
653951f70a
Drop connection if client and peer are both seeders.
2011-01-07 00:20:10 +09:00
Tatsuhiro Tsujikawa
b6d5c389b8
Added missing include.
2011-01-07 00:19:10 +09:00
Tatsuhiro Tsujikawa
920583502e
Consider IP address and port when finding DHT node.
2011-01-07 00:14:42 +09:00
Tatsuhiro Tsujikawa
d429943d05
Fixed the bug that peer is marked as seeder whenever it sends
...
extension handshake with metadata size.
Peer must be marked as seeder only when client has not got metadata
yet. This bug causes aria2 shutdowns connection early when it gets
have message from a peer because it wrongly recognizes the peer as
seeder.
2011-01-06 22:43:34 +09:00
Tatsuhiro Tsujikawa
e818f9c8a5
Use %lx for DWORD.
...
GetLastError() returns DWORD, not C-String.
2010-12-19 00:24:36 +09:00
Tatsuhiro Tsujikawa
3cf156240b
Updated po templates.
2010-12-18 21:45:19 +09:00
Tatsuhiro Tsujikawa
05bf745f66
Updated version number to 1.10.8 in man page.
2010-12-18 21:39:53 +09:00
Tatsuhiro Tsujikawa
6af3cd82b3
Updated for 1.10.8 release
2010-12-18 21:38:56 +09:00
Tatsuhiro Tsujikawa
7a7c95fa15
Bump up version number to 1.10.8
2010-12-18 21:26:38 +09:00
Tatsuhiro Tsujikawa
b04e0bae6b
Moved #include <gettext.h> inside of #ifdef ENABLE_NLS.
...
If we put #include <gettext.h> outside of #ifdef ENABLE_NLS and
--disable-nls is used, gettext(msgid) is defined as ((const char *)
(Msgid)). System header includes libintl.h regardless of
--disable-nls. For example, #include <string> will include libintl.h
through include chain. Since libintl.h refers gettext and it is
defined as non-function form, this causes compile error. User reported
gcc-4.2.2 has this problem. But gcc-4.4.5 does not suffer from this
problem.
2010-12-15 22:33:26 +09:00
Tatsuhiro Tsujikawa
5856d9252b
Updated doc.
2010-12-10 21:50:23 +09:00
Tatsuhiro Tsujikawa
94ee6d6895
Updated doc
2010-12-10 21:34:24 +09:00
Tatsuhiro Tsujikawa
9e70c5ead7
Fixed typo
2010-12-10 21:29:50 +09:00
Tatsuhiro Tsujikawa
418c04c94c
Fixed typo
2010-12-09 21:59:35 +09:00
Tatsuhiro Tsujikawa
3d0764eb9d
Added comment.
2010-12-09 21:49:00 +09:00
Tatsuhiro Tsujikawa
31ec5ddf92
Updated help text for --input-file option.
...
Removed reference of --out and --dir option. It is a regacy before we
supported many other options.
2010-12-08 22:54:20 +09:00
Tatsuhiro Tsujikawa
235b5a0848
Allocate buffer used by DownloadCommand in stack.
2010-12-08 20:41:12 +09:00
Tatsuhiro Tsujikawa
9103fb6105
Refactored PieceStatMan::updatePieceStats().
2010-12-07 01:08:11 +09:00
Tatsuhiro Tsujikawa
829803d4f5
Fixed compile error which occurs when system has posix_fallocate() but
...
does not have fallocate().
2010-12-05 23:47:35 +09:00
Tatsuhiro Tsujikawa
da8e0203b8
Removed specializations of std::swap(PeerEntry&, PeerEntry&).
...
Declaring std::swap(PeerEntry&, PeerEntry&) in class declaration
breaks under Mac OS X 10.5. They are also not used. So we simply
removed them.
2010-12-05 23:19:37 +09:00
Tatsuhiro Tsujikawa
55e49b65d3
Use errno to get error code epoll_ctl(). Using its returned value as
...
error code is simply wrong.
2010-12-05 23:13:09 +09:00
Tatsuhiro Tsujikawa
f0e8940cec
Added Arabic translation. Updated Russian, Greek and Danish
...
translation. Thanks to all translators.
2010-12-05 16:04:58 +09:00
Tatsuhiro Tsujikawa
089563cb2a
Updated po templates.
2010-12-05 15:54:38 +09:00
Tatsuhiro Tsujikawa
6363da9cea
Updated NEWS for 1.10.7 release.
2010-12-05 15:16:15 +09:00
Tatsuhiro Tsujikawa
bc798ae4e6
Use Exception::getErrorCode() in main() instead of error_code::UNKNOWN_ERROR
...
unconditionally.
2010-12-05 15:13:32 +09:00
Tatsuhiro Tsujikawa
f5efdd9413
Updated doc for --on-download-stop.
2010-12-04 22:43:07 +09:00