2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

* src/SocketCore.cc
	(isReadable): Added secure to the condition.
	* src/HttpConnection.cc
	(receiveResponse): Fixed a bug that causes no response header
	exception.
	* src/Peer.h
	(getFastSet): Fixed the return value type.
pull/1/head
Tatsuhiro Tsujikawa 2006-05-19 15:49:32 +00:00
parent d018b3a609
commit 6497ed63d4
5 changed files with 16 additions and 3 deletions

View File

@ -1,3 +1,13 @@
2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* src/SocketCore.cc
(isReadable): Added secure to the condition.
* src/HttpConnection.cc
(receiveResponse): Fixed a bug that causes no response header
exception.
* src/Peer.h
(getFastSet): Fixed the return value type.
2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
To remove a wait from download loop:

4
TODO
View File

@ -16,4 +16,6 @@
* Add announce-list support
* Refacturing HttpConnection and FtpConnection
* HTTP/FTP downloading regression test
* Fast extension test
* Fast extension test
* send stop to the tracker when download finishes or ctrl-c enters.
* fix flooding detection

View File

@ -141,6 +141,7 @@ int HttpConnection::receiveResponse(HttpHeader& headers) {
if((eohIndex = findEndOfHeader(headerBuf, "\r\n\r\n", hlenTemp)) == -1 &&
(eohIndex = findEndOfHeader(headerBuf, "\n\n", hlenTemp)) == -1) {
socket->readData(headerBuf+headerBufLength, size);
headerBufLength += size;
} else {
if(eohIndex[headerBuf] == '\n') {
// for crapping non-standard HTTP server

View File

@ -130,7 +130,7 @@ public:
bool isFastExtensionEnabled() const { return fastExtensionEnabled; }
void addFastSetIndex(int index);
const Integers getFastSet() const { return fastSet; }
const Integers& getFastSet() const { return fastSet; }
bool isInFastSet(int index) const;
int countFastSet() const { return fastSet.size(); }

View File

@ -235,7 +235,7 @@ bool SocketCore::isWritable(int timeout) const {
bool SocketCore::isReadable(int timeout) const {
#ifdef HAVE_LIBGNUTLS
if(peekBufLength > 0) {
if(secure && peekBufLength > 0) {
return true;
}
#endif // HAVE_LIBGNUTLS