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 "Supun Kamburugamuva (JIRA)" <ji...@apache.org> on 2006/11/27 09:07:20 UTC

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

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


[jira] Updated: (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.

Posted by "Dinesh Premalal (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-428?page=all ]

Dinesh Premalal updated AXIS2C-428:
-----------------------------------

    Fix Version/s: 0.96

> 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
>             Fix For: 0.96
>
>
> 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


[jira] Resolved: (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.

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Samisa Abeysinghe resolved AXIS2C-428.
--------------------------------------

    Resolution: Cannot Reproduce

:( Cannot fix it without being able to re-produce

> 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: https://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.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (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.

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-428?page=all ]

Samisa Abeysinghe updated AXIS2C-428:
-------------------------------------

    Fix Version/s: 1.0.0
                       (was: 0.96)

> 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
>             Fix For: 1.0.0
>
>
> 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


[jira] Updated: (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.

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Samisa Abeysinghe updated AXIS2C-428:
-------------------------------------

    Fix Version/s:     (was: 1.0.0)

It is almost impossible to reproduce this with normal samples

> 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: https://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.
-
You can reply to this email to add a comment to the issue online.


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