diff options
author | jxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-14 10:50:54 +0000 |
---|---|---|
committer | jxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-14 10:50:54 +0000 |
commit | 68c539972bcbcd3dca0e9e204f45e97baf4ca100 (patch) | |
tree | 9c6acf0c1bef97e29e228b670066e63126ad2dd4 | |
parent | 856bf727c433a8ebbd3385dda962a39e60715911 (diff) | |
download | ATCD-68c539972bcbcd3dca0e9e204f45e97baf4ca100.tar.gz |
*** empty log message ***
-rw-r--r-- | apps/JAWS/PROTOTYPE/HTTP_10_Write.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/apps/JAWS/PROTOTYPE/HTTP_10_Write.cpp b/apps/JAWS/PROTOTYPE/HTTP_10_Write.cpp index a0f67b2ced3..0cd187324b0 100644 --- a/apps/JAWS/PROTOTYPE/HTTP_10_Write.cpp +++ b/apps/JAWS/PROTOTYPE/HTTP_10_Write.cpp @@ -29,6 +29,7 @@ JAWS_HTTP_10_Write_Task::handle_put (JAWS_Data_Block *data, ACE_Time_Value *) JAWS_TRACE ("JAWS_HTTP_10_Write_Task::handle_put"); JAWS_IO_Handler *handler = data->io_handler (); + JAWS_Dispatch_Policy *policy = this->policy (); if (policy == 0) policy = data->policy (); @@ -41,7 +42,7 @@ JAWS_HTTP_10_Write_Task::handle_put (JAWS_Data_Block *data, ACE_Time_Value *) { data->payload (0); delete info; - return -1; + return -3; } #if 0 @@ -70,11 +71,12 @@ JAWS_HTTP_10_Write_Task::handle_put (JAWS_Data_Block *data, ACE_Time_Value *) switch (handler->status ()) { case JAWS_IO_Handler::WRITE_OK: + case JAWS_IO_Handler::WRITE_OK_A: if (info->status () == (int) JAWS_HTTP_10_Request::STATUS_QUIT) { data->payload (0); delete info; - return -1; + return -3; } data->payload (0); @@ -104,12 +106,15 @@ JAWS_HTTP_10_Write_Task::handle_put (JAWS_Data_Block *data, ACE_Time_Value *) switch (handler->status ()) { - case JAWS_IO_Handler::TRANSMIT_OK: case JAWS_IO_Handler::TRANSMIT_OK_A: + data->payload (0); + delete info; + return 1; + + case JAWS_IO_Handler::TRANSMIT_OK: { JAWS_TRACE ("JAWS_HTTP_10_Write_Task::handle_put, OK"); data->payload (0); -cerr << "(" << thr_self () << ") O deleting info: " << info << "<<<-------" << endl; delete info; return 0; } @@ -118,7 +123,6 @@ cerr << "(" << thr_self () << ") O deleting info: " << info << "<<<-------" << e { JAWS_TRACE ("JAWS_HTTP_10_Write_Task::handle_put, ERROR"); data->payload (0); -cerr << "(" << thr_self () << ") E deleting info: " << info << "<<<-------" << endl; delete info; return -1; } @@ -126,7 +130,6 @@ cerr << "(" << thr_self () << ") E deleting info: " << info << "<<<-------" << e { JAWS_TRACE ("JAWS_HTTP_10_Write_Task::handle_put, DEFAULT"); data->payload (0); -cerr << "<" << thr_self () << "> D deleting info: " << info << "<<<-------" << endl; delete info; return 1; } @@ -134,7 +137,6 @@ cerr << "<" << thr_self () << "> D deleting info: " << info << "<<<-------" << e } -cerr << "<" << thr_self () << "> U deleting info: " << info << "<<<-------" << endl; data->payload (0); delete info; return -1; |