diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-02-22 16:01:54 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-02-22 16:01:54 +0000 |
| commit | 44beebd257b0fb265bea5387850b9beb33c0adc2 (patch) | |
| tree | 0ec08e4aad18ccff2d578aca1c0b3799d2716c6c /src/HttpProxyRequestCommand.cc | |
| parent | d027ca8e7c383e9755d6fb997e8a880df99e88b9 (diff) | |
| parent | 87a229cab18679042beb06076e5dec1dcfadaeae (diff) | |
Tagging release 0.2.0 of aria2release-0.2.0
Diffstat (limited to 'src/HttpProxyRequestCommand.cc')
| -rw-r--r-- | src/HttpProxyRequestCommand.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/HttpProxyRequestCommand.cc b/src/HttpProxyRequestCommand.cc index bbff980a..f1a5a8c9 100644 --- a/src/HttpProxyRequestCommand.cc +++ b/src/HttpProxyRequestCommand.cc @@ -24,17 +24,16 @@ #include "HttpProxyResponseCommand.h" HttpProxyRequestCommand::HttpProxyRequestCommand(int cuid, Request* req, DownloadEngine* e, Socket* s):AbstractCommand(cuid, req, e, s) { - AbstractCommand::checkSocketIsWritable = true; - e->deleteSocketForReadCheck(socket); - e->addSocketForWriteCheck(socket); + setReadCheckSocket(NULL); + setWriteCheckSocket(socket); } HttpProxyRequestCommand::~HttpProxyRequestCommand() {} bool HttpProxyRequestCommand::executeInternal(Segment segment) { - socket->setNonBlockingMode(); - HttpConnection httpConnection(cuid, socket, e->option, e->logger); - httpConnection.sendProxyRequest(req); + socket->setBlockingMode(); + HttpConnection httpConnection(cuid, socket, req, e->option, e->logger); + httpConnection.sendProxyRequest(); HttpProxyResponseCommand* command = new HttpProxyResponseCommand(cuid, req, e, socket); e->commands.push(command); |
