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 "nadir amra (JIRA)" <ji...@apache.org> on 2010/06/04 01:48:01 UTC

[jira] Created: (AXIS2C-1480) Improve performance of reading HTTP headers

Improve performance of reading HTTP headers
-------------------------------------------

                 Key: AXIS2C-1480
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1480
             Project: Axis2-C
          Issue Type: Improvement
          Components: transport/http, util
            Reporter: nadir amra


Currently, in file src/core/transport/http/sender/http_client.c, when processing HTTP headers, we read the data 1 byte at a time.  This is too inefficient and performance intensive, since each read means a read to the TCP/IP stack. 

The proposal is to improve the stream utility support so that one can specify a minimum number of bytes to read.  So that when a read comes down that is less than the minimum, we read the minimum into a stream buffer and then copy the requested read length into caller buffer.  So next time stream is read, and there is data in the stream buffer, the data is returned without having to do a socket read. 

We can probably extend this on the stream write-side as well. 



-- 
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: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXIS2C-1480) Improve performance of reading HTTP headers

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

Damitha Kumarage updated AXIS2C-1480:
-------------------------------------

    Fix Version/s: Next Version

> Improve performance of reading HTTP headers
> -------------------------------------------
>
>                 Key: AXIS2C-1480
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1480
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: transport/http, util
>            Reporter: nadir amra
>             Fix For: Next Version
>
>
> Currently, in file src/core/transport/http/sender/http_client.c, when processing HTTP headers, we read the data 1 byte at a time.  This is too inefficient and performance intensive, since each read means a read to the TCP/IP stack. 
> The proposal is to improve the stream utility support so that one can specify a minimum number of bytes to read.  So that when a read comes down that is less than the minimum, we read the minimum into a stream buffer and then copy the requested read length into caller buffer.  So next time stream is read, and there is data in the stream buffer, the data is returned without having to do a socket read. 
> We can probably extend this on the stream write-side as well. 

-- 
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: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXIS2C-1480) Improve performance of reading HTTP headers

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

Damitha Kumarage updated AXIS2C-1480:
-------------------------------------

    Fix Version/s: Next Version

> Improve performance of reading HTTP headers
> -------------------------------------------
>
>                 Key: AXIS2C-1480
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1480
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: transport/http, util
>            Reporter: nadir amra
>             Fix For: Next Version
>
>
> Currently, in file src/core/transport/http/sender/http_client.c, when processing HTTP headers, we read the data 1 byte at a time.  This is too inefficient and performance intensive, since each read means a read to the TCP/IP stack. 
> The proposal is to improve the stream utility support so that one can specify a minimum number of bytes to read.  So that when a read comes down that is less than the minimum, we read the minimum into a stream buffer and then copy the requested read length into caller buffer.  So next time stream is read, and there is data in the stream buffer, the data is returned without having to do a socket read. 
> We can probably extend this on the stream write-side as well. 

-- 
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: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org