axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Supun Kamburugamuva (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2C-428) http_client reads data from a socket without checking weather the socket is ready to give data. If the data arrived and socket is not ready client assumes data is not available.
Date Mon, 27 Nov 2006 08:07:20 GMT
http_client reads data from a socket without checking weather the socket is ready to give data.
If the data arrived and socket is not ready client assumes data is not available.  
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2C-428
                 URL: http://issues.apache.org/jira/browse/AXIS2C-428
             Project: Axis2-C
          Issue Type: Bug
          Components: transport/http
    Affects Versions: Current (Nightly)
            Reporter: Supun Kamburugamuva


File - modules\core\transport\http\sender\http_client.c
Function - axis2_http_client_recieve_header
Line - 512

The statement in this line reads the data stream and assign the number of characters read
to the "read" variable. But this line does not check weather the socket is capable of giving
data at the time of access (Socket is ready or not). In some cases when this statement executes,
data has arrived but the socket is not ready to give the data. So the client assumes error.
As a result the method returns with error although the response has arrived.

When this happens the svc_client "send_xxxx" methods returns with null results event though
the actual response has arrived. This bug occurs in random.   


-- 
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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message