Tatsuhiro Tsujikawa
3ca104a506
Updated
2009-02-13 14:19:15 +00:00
Tatsuhiro Tsujikawa
7007a7386f
2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the segmentation fault during execution of choking
algorithm in leecher state because of broken compare operator
implementation.
* src/BtLeecherStateChoke.cc
* src/BtLeecherStateChoke.h
2009-02-13 14:10:55 +00:00
Tatsuhiro Tsujikawa
34d7cd7a70
2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Open file in binary mode.
* src/CookieStorage.cc
* src/DHTSetup.cc
* src/DHTUtil.cc
* src/Netrc.cc
* src/NsCookieParser.cc
* src/ProtocolDetector.cc
* src/RequestGroupMan.cc
* src/Signature.cc
* src/bencode.cc
* src/download_helper.cc
* src/option_processing.cc
* test/CookieParserTest.cc
* test/DefaultBtProgressInfoFileTest.cc
* test/FileTest.cc
* test/GZipDecoderTest.cc
* test/RequestGroupManTest.cc
* test/SignatureTest.cc
* test/SingleFileAllocationIteratorTest.cc
* test/UriListParserTest.cc
2009-02-13 11:28:42 +00:00
Tatsuhiro Tsujikawa
9d27eb53f5
2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed operator[] because it is ambiguous with built-in []
operator.
* src/array_fun.h
2009-02-12 15:42:10 +00:00
Tatsuhiro Tsujikawa
fff02b6012
2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error
* src/OptionParser.cc
2009-02-12 15:40:33 +00:00
Tatsuhiro Tsujikawa
9ce0e78780
2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added missing call to arrayWrapperConst
* test/array_funTest.cc
2009-02-12 15:39:07 +00:00
Tatsuhiro Tsujikawa
83caf2903b
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use array_wrapper instead of array_ptr.
* src/DHTRoutingTableDeserializer.cc
2009-02-12 14:17:13 +00:00
Tatsuhiro Tsujikawa
b521bd5752
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed template<typename S> array_ptr(const array_ptr<S>& s)
* src/array_fun.h
2009-02-12 13:45:46 +00:00
Tatsuhiro Tsujikawa
b8b6b5c568
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added array_wrapper template.
* src/array_fun.h
* test/array_funTest.cc
2009-02-12 13:44:34 +00:00
Tatsuhiro Tsujikawa
a73ef15904
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use operator T* of array_ptr.
* src/OptionParser.cc
2009-02-12 13:12:54 +00:00
Tatsuhiro Tsujikawa
2e9edd316a
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use localhost instead of 127.0.0.1
* test/FtpConnectionTest.cc
* test/MSEHandshakeTest.cc
2009-02-12 13:11:51 +00:00
Tatsuhiro Tsujikawa
1c46a26ae6
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added operator T*
* src/array_fun.h
* test/array_funTest.cc
2009-02-12 13:10:38 +00:00
Tatsuhiro Tsujikawa
5547b3a5ed
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use dynamically allocated char array to detect memory access
violation.
* src/DHTRoutingTableDeserializer.cc
2009-02-11 16:33:45 +00:00
Tatsuhiro Tsujikawa
509c13c173
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
defined.
* src/PeerMessageUtil.cc
2009-02-11 16:15:30 +00:00
Tatsuhiro Tsujikawa
44e574e2fe
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
* configure.ac
2009-02-11 16:14:22 +00:00
Tatsuhiro Tsujikawa
c0f13f9e69
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added a check to see struct sockaddr_in has sin_len member.
* configure.ac
2009-02-11 16:12:07 +00:00
Tatsuhiro Tsujikawa
8f596468eb
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed buffer overrun.
* src/DHTRoutingTableDeserializer.cc
2009-02-11 16:09:20 +00:00
Tatsuhiro Tsujikawa
c7cf936956
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added LL for long long int constant.
* test/FtpConnectionTest.cc
2009-02-11 16:08:14 +00:00
Tatsuhiro Tsujikawa
1982ebaf1f
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Casted to unsigned int to suppress compiler warning on netbsd.
* src/BtRuntime.h
2009-02-11 16:07:00 +00:00
Tatsuhiro Tsujikawa
43796accda
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Assign the value of tv.tv_sec to time_t timesec instead of
giving tv.tv_sec to localtime_r directly because tv.tv_sec may
not be of type time_t.
* src/SimpleLogger.cc
2009-02-11 16:05:33 +00:00
Tatsuhiro Tsujikawa
0a5f6751d1
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added test for FtpConnection::receiveSizeResponse().
* test/FtpConnectionTest.cc
2009-02-11 10:41:56 +00:00
Tatsuhiro Tsujikawa
cf20e207d4
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fix epoll error on the old kernel 2.6.8 or ealier.
* src/EpollEventPoll.cc
2009-02-11 10:34:43 +00:00
Tatsuhiro Tsujikawa
56366759fc
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use Util::parseLLInt instead of sscanf for portability. The
conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
* src/FtpConnection.cc
2009-02-11 10:32:10 +00:00
Tatsuhiro Tsujikawa
0fc900c0ac
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that adding 0 length filter to BitfieldMan filters
1 block. It should not filter anything.
* src/BitfieldMan.cc
* src/ConsoleStatCalc.cc
* test/BitfieldManTest.cc
2009-02-11 07:54:03 +00:00
Tatsuhiro Tsujikawa
a8376a5c4b
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that the boolean options that don't take arguments
don't work.
* src/OptionHandlerImpl.h
2009-02-11 07:46:15 +00:00
Tatsuhiro Tsujikawa
a2c3c54386
s/MultiDiskWriter/MultiDiskAdaptor/ in the previous log message.
2009-02-11 07:43:10 +00:00
Tatsuhiro Tsujikawa
b5af788a00
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed broken selected file BitTorrent download.
* src/MultiDiskWriter.cc
* test/MultiDiskWriterTest.cc
* test/MultiFileAllocationIteratorTest.cc
2009-02-11 07:41:15 +00:00
Tatsuhiro Tsujikawa
4570a4242e
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed #define guard for EpollEventPoll
* src/EpollEventPoll.h
2009-02-10 17:00:43 +00:00
Tatsuhiro Tsujikawa
d63308afc5
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Wait 2 seconds. 1 second is sometimes not enough.
* test/TimeSeedCriteriaTest.cc
2009-02-10 14:53:32 +00:00
Tatsuhiro Tsujikawa
900d102bbf
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use localhost instead of 127.0.0.1.
* test/DHTConnectionImplTest.cc
2009-02-10 14:52:20 +00:00
Tatsuhiro Tsujikawa
fb8848d415
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Suppressed compiler warning.
* src/AdaptiveURISelector.cc
* src/DefaultPieceStorage.cc
2009-02-10 14:50:54 +00:00
Tatsuhiro Tsujikawa
145799abc5
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Defined virtual destructor.
* src/MetalinkParserState.h
2009-02-10 14:49:35 +00:00
Tatsuhiro Tsujikawa
15b2d2f53b
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Give NULL for second argument of getaddrinfo instead of "0".
* src/NameResolver.cc
2009-02-10 14:48:36 +00:00
Tatsuhiro Tsujikawa
fe267b43d5
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
included strptime doesn't parse data for this format.
* src/FtpConnection.cc
* test/FtpConnectionTest.cc
2009-02-10 14:47:07 +00:00
Tatsuhiro Tsujikawa
a57e0b1273
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed tests giving -1 for unsigned argument.
* test/SingleFileDownloadContextTest.cc
2009-02-10 14:45:21 +00:00
Tatsuhiro Tsujikawa
52b17520de
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't use sha256 in tests because it might not be supported by
the SSL library.
* test/MetalinkProcessorTest.cc
2009-02-10 14:44:33 +00:00
Tatsuhiro Tsujikawa
ab06444ba7
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed tests giving -1 for unsigned argument.
* test/AlphaNumberDecoratorTest
* test/BitfieldManTest.cc
* test/DefaultBtContextTest.cc
2009-02-10 14:42:49 +00:00
Tatsuhiro Tsujikawa
01b3968f92
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error without libcares when epoll is available.
* src/EpollEventPoll.cc
2009-02-10 14:26:11 +00:00
Tatsuhiro Tsujikawa
abae62908f
2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Included fstream instead of iostream.
* test/SignatureTest.cc
2009-02-09 12:45:07 +00:00
Tatsuhiro Tsujikawa
28d9af6d04
2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed #include <algorithm>
* test/RequestGroupTest.cc
2009-02-08 14:21:20 +00:00
Tatsuhiro Tsujikawa
9bb57720cf
2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
using RequestGroup::extractURIResult().
* src/AdaptiveURISelector.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* test/RequestGroupTest.cc
2009-02-08 14:17:55 +00:00
Tatsuhiro Tsujikawa
b8d177dd5d
2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added tests for array_ptr.
* test/array_funTest.cc
2009-02-08 11:27:22 +00:00
Tatsuhiro Tsujikawa
9a7eee5cfa
2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't send ip parameter to a tracker if ip parameter is empty
string.
* src/DefaultBtAnnounce.cc
2009-02-07 15:02:32 +00:00
Tatsuhiro Tsujikawa
064754396e
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Adjusted line feed.
* src/version_usage.cc
2009-02-07 14:24:56 +00:00
Tatsuhiro Tsujikawa
9dd04b7aaa
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Print tags, possible values when OptionHandlerException is
caught.
* src/option_processing.cc
2009-02-07 14:24:11 +00:00
Tatsuhiro Tsujikawa
d71f434f61
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed the message for FatalException.
* src/OptionParser.cc
2009-02-07 14:22:17 +00:00
Tatsuhiro Tsujikawa
8bb78d30aa
Updated.
2009-02-07 14:06:50 +00:00
Tatsuhiro Tsujikawa
366e5f40d5
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Documented --bt-external-ip option in man page. Updated man
pages for --proxy-method option.
* doc/aria2c.1.txt
2009-02-07 14:01:38 +00:00
Tatsuhiro Tsujikawa
0fcdb7eee3
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use GET method for FTP via HTTP proxy.
* src/FtpInitiateConnectionCommand.cc
2009-02-07 13:52:41 +00:00
Tatsuhiro Tsujikawa
997a0c29d1
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed the default value of --proxy-method option from 'tunnel'
to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
option.
* src/AbstractCommand.cc
* src/AbstractCommand.h
* src/FtpInitiateConnectionCommand.cc
* src/HttpDownloadCommand.cc
* src/HttpInitiateConnectionCommand.cc
* src/HttpInitiateConnectionCommand.h
* src/OptionHandlerFactory.cc
2009-02-07 13:46:08 +00:00