You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Bernd Weber (JIRA)" <ax...@ws.apache.org> on 2005/07/11 14:38:14 UTC

[jira] Updated: (AXISCPP-609) Multi chunked http responses miss some bytes randomly

     [ http://issues.apache.org/jira/browse/AXISCPP-609?page=all ]

Bernd Weber updated AXISCPP-609:
--------------------------------

    Attachment: axis-c-1-5_transport.zip

I rewrote the whole class HTTPTransport and split some code into new classes based on the 1.5 final source.
But there was another potential point of failure: In src/transport/axis3/IChannel.hpp:45/46 - there are operator overloadings to read from and write to a channel. Where calculating the byte amount of a const char* to write/send is not a problem, it is quite unsure to receive bytes and write them into a buffer hoping it's size is at least BUF_SIZE as how it is implemented. And how many bytes are really received, is not to see directly. Another time the caller must hope - hope, that the used channel set the trailing 0 after the last received byte so he can use strlen to calculate the amount of bytes received. So I replaced these overloadings with read/write methods and did so with the derived classes HTTPChannel and HTTPSSLChannel.
All changes are stored in the attached zip file.

> Multi chunked http responses miss some bytes randomly
> -----------------------------------------------------
>
>          Key: AXISCPP-609
>          URL: http://issues.apache.org/jira/browse/AXISCPP-609
>      Project: Axis-C++
>         Type: Bug
>   Components: Transport (axis3)
>     Versions: unspecified
>  Environment: The issue is not specific of a particular environment
>     Reporter: Arcangelo Di Balsamo
>  Attachments: HTTPTransport.cpp, HTTPTransport.cpp, HTTPTransport.cpp, HTTPTransport.cpp, HTTPTransport.cpp, HTTPTransport.dll, HTTPTransport.hpp, HTTPTransport.zip, axis-c-1-5_transport.zip
>
> Multi chunked http responses miss some bytes randomly.
> The issue is partially related to the AXISCPP-518 reported by myself too.
> The bug is in the getBytes method of HTTPTransport class.
> I made a tentative fix, that I've deeply tested.
> In the fix I did, I've changed a little bit the implementation logic.
> Splitting the getBytes method in more methods should be a nice to have.
> I'm attaching the modified file.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira