axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Weber (JIRA)" <>
Subject [jira] Updated: (AXISCPP-609) Multi chunked http responses miss some bytes randomly
Date Mon, 11 Jul 2005 12:38:14 GMT
     [ ]

Bernd Weber updated AXISCPP-609:


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:
>      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,,
> 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:
For more information on JIRA, see:

View raw message