mirror of https://github.com/aria2/aria2
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that SocketCore::isReadable() prevents aria2 from processing 0 length request. * src/HttpServerBodyCommand.ccpull/1/head
parent
9f0a602ce3
commit
d237c5e442
|
@ -1,3 +1,9 @@
|
||||||
|
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Fixed the bug that SocketCore::isReadable() prevents aria2 from
|
||||||
|
processing 0 length request.
|
||||||
|
* src/HttpServerBodyCommand.cc
|
||||||
|
|
||||||
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Removed --enable-http-server and --http-server-listen-port
|
Removed --enable-http-server and --http-server-listen-port
|
||||||
|
|
|
@ -74,15 +74,13 @@ bool HttpServerBodyCommand::execute()
|
||||||
if(_e->_requestGroupMan->downloadFinished() || _e->isHaltRequested()) {
|
if(_e->_requestGroupMan->downloadFinished() || _e->isHaltRequested()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if(_socket->isReadable(0)) {
|
if(_socket->isReadable(0) || _httpServer->getContentLength() == 0) {
|
||||||
_timeout.reset();
|
_timeout.reset();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if(_httpServer->receiveBody()) {
|
if(_httpServer->receiveBody()) {
|
||||||
// Do something for requestpath and body
|
// Do something for requestpath and body
|
||||||
if(_httpServer->getRequestPath() == "/rpc") {
|
if(_httpServer->getRequestPath() == "/rpc") {
|
||||||
// For xml-rpc, disable keep-alive
|
|
||||||
//_httpServer->disableKeepAlive();
|
|
||||||
xmlrpc::XmlRpcRequest req =
|
xmlrpc::XmlRpcRequest req =
|
||||||
xmlrpc::XmlRpcRequestProcessor().parseMemory(_httpServer->getBody());
|
xmlrpc::XmlRpcRequestProcessor().parseMemory(_httpServer->getBody());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue