About persistent http connections

This is a discussion on About persistent http connections within the Apache forums in Application Servers & Tools category; Hi All We are required to implement a system in C/S structure. The Client have to send a request to the Server every min. And we use axis2c to send and recv messages between client and server, and a persistent http connection is required. my question is how can i establish a persistent connetion from client to server with axis2c. Best Regard Yuanfeng Zhang...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-04-2008, 05:58 AM
Yuanfeng Zhang
Guest
 
Default About persistent http connections

Hi All

We are required to implement a system in C/S structure. The Client have
to send a request to the Server every min. And we use axis2c to send and
recv messages between client and server, and a persistent http connection is
required. my question is how can i establish a persistent connetion from
client to server with axis2c.


Best Regard
Yuanfeng Zhang

Reply With Quote
  #2  
Old 11-04-2008, 06:09 AM
Supun Kamburugamuva
Guest
 
Default Re: About persistent http connections

Hi,

Did you mean HTTP Keep alive by a persistent connection?

Supun.

On Tue, Nov 4, 2008 at 3:58 PM, Yuanfeng Zhang <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:

> Hi All
>
> We are required to implement a system in C/S structure. The Client
> have to send a request to the Server every min. And we use axis2c to send
> and recv messages between client and server, and a persistent http
> connection is required. my question is how can i establish a persistent
> connetion from client to server with axis2c.
>
>
> Best Regard
> Yuanfeng Zhang
>




--
Software Engineer, WSO2 Inc
http://wso2.org
Web Services with Axis2/C http://wsaxc.blospot.com

Reply With Quote
  #3  
Old 11-04-2008, 06:42 AM
Yuanfeng Zhang
Guest
 
Default Re: About persistent http connections

Hi
The problem is, we use the API "axis2_svc_client_send_receive" to
send request and receive response between client and server, we hope all the
messages be transfered in only one http connection, but we found when the
client received the response message, it released the connection, and
establish a new http connection for the next request.

Can we send and recv all the messages in one connection? And how to
configure axis2c?

Thanks!


2008/11/4 Supun Kamburugamuva <supun06-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

> Hi,
>
> Did you mean HTTP Keep alive by a persistent connection?
>
> Supun.
>
>
> On Tue, Nov 4, 2008 at 3:58 PM, Yuanfeng Zhang <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:
>
>> Hi All
>>
>> We are required to implement a system in C/S structure. The Client
>> have to send a request to the Server every min. And we use axis2c to send
>> and recv messages between client and server, and a persistent http
>> connection is required. my question is how can i establish a persistent
>> connetion from client to server with axis2c.
>>
>>
>> Best Regard
>> Yuanfeng Zhang
>>

>
>
>
> --
> Software Engineer, WSO2 Inc
> http://wso2.org
> Web Services with Axis2/C http://wsaxc.blospot.com
>
>


Reply With Quote
  #4  
Old 11-04-2008, 07:55 AM
Dinesh Premalal
Guest
 
Default Re: About persistent http connections

Hi,

"Yuanfeng Zhang" <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> Can we send and recv all the messages in one connection? And how to
> configure axis2c?


if you use Axis2/C client with libcurl enabled and server with apache2
server(mod_axis2) , You should be able to use send and recv all
messages in one connection (keep alive).


thanks,
Dinesh
Reply With Quote
  #5  
Old 11-04-2008, 11:24 AM
Yuanfeng Zhang
Guest
 
Default Re: About persistent http connections

Hi Dinesh

Thanks!
Can you give some example about that? And how to configure Apache2?(I
have already built mod_axis2c)
Thanks a lot!


2008/11/4 Dinesh Premalal <xydinesh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

> Hi,
>
> "Yuanfeng Zhang" <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> > Can we send and recv all the messages in one connection? And how

> to
> > configure axis2c?

>
> if you use Axis2/C client with libcurl enabled and server with apache2
> server(mod_axis2) , You should be able to use send and recv all
> messages in one connection (keep alive).
>
>
> thanks,
> Dinesh
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe-28n8OjmUYWfN...blic.gmane.org
> For additional commands, e-mail: axis-c-user-help-28n8OjmUYWfNLxjTenL...blic.gmane.org
>
>


Reply With Quote
  #6  
Old 11-04-2008, 01:07 PM
Dinesh Premalal
Guest
 
Default Re: About persistent http connections

On Tue, Nov 4, 2008 at 11:24 AM, Yuanfeng Zhang <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:

> Hi Dinesh
>
> Thanks!
> Can you give some example about that? And how to configure Apache2?(I
> have already built mod_axis2c)
>


http://wso2.org/library/1686

thanks,
Dinesh
--
http://nethu.org

Reply With Quote
  #7  
Old 11-04-2008, 11:05 PM
Yuanfeng Zhang
Guest
 
Default Re: About persistent http connections

Hi Dinesh

I have already rebuild my client axis2/c libs with libcurl enabled and
run apache2 with the configurations "KeepAlive On" "KeepAliveTimeout 100"
and "MaxKeepAliveRequests 500" in httpd.conf.
Then I use the api "axis2_svc_client_send_receive" to communicate with
server, and I still found i cannot send and recv all the messages in one
connection.
Is there any other work I have to do? Please help !

Thanks!


2008/11/5 Premalal <xydinesh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

>
>
> On Tue, Nov 4, 2008 at 11:24 AM, Yuanfeng Zhang <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:
>
>> Hi Dinesh
>>
>> Thanks!
>> Can you give some example about that? And how to configure
>> Apache2?(I have already built mod_axis2c)
>>

>
> http://wso2.org/library/1686
>
> thanks,
> Dinesh
> --
> http://nethu.org
>


Reply With Quote
  #8  
Old 11-04-2008, 11:13 PM
Dinesh Premalal
Guest
 
Default Re: About persistent http connections

Hi,

On Tue, Nov 4, 2008 at 11:05 PM, Yuanfeng Zhang <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:

> Hi Dinesh
>
> I have already rebuild my client axis2/c libs with libcurl enabled and
> run apache2 with the configurations "KeepAlive On" "KeepAliveTimeout 100"
> and "MaxKeepAliveRequests 500" in httpd.conf.
> Then I use the api "axis2_svc_client_send_receive" to communicate with
> server, and I still found i cannot send and recv all the messages in one
> connection.
> Is there any other work I have to do? Please help !



If you are using *same* svc_client (libcurl enabled) for sending it should
use a single connection with mod_axis2.

thanks,
Dinesh




--
http://nethu.org

Reply With Quote
  #9  
Old 11-10-2008, 05:10 AM
Yuanfeng Zhang
Guest
 
Default Re: About persistent http connections

Hi Dinesh,

I built the client with libcurl enabled, and set the right AXIS2C_HOME,
but some error occured while init the svc_client.
If i build the client without libcurl , it works ok.
the log is:
[Mon Nov 10 17:56:35 2008] [error] ..\..\util\src\class_loader.c(167)
Loading shared library
D:\axis2c\axis2c-src-1.5.0\build\deploy/lib/axis2_http_sender.dll Failed.
DLERROR IS DLL Load Error 126:

the version of curl is libcurl-7.15.1-msvc-win32-ssl-0.9.8a-zlib-1.2.3
the version of axis is 1.5.0

please help! Thanks!


2008/11/5 Dinesh Premalal <xydinesh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

> Hi,
>
> On Tue, Nov 4, 2008 at 11:05 PM, Yuanfeng Zhang <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:
>
>> Hi Dinesh
>>
>> I have already rebuild my client axis2/c libs with libcurl enabled and
>> run apache2 with the configurations "KeepAlive On" "KeepAliveTimeout 100"
>> and "MaxKeepAliveRequests 500" in httpd.conf.
>> Then I use the api "axis2_svc_client_send_receive" to communicate with
>> server, and I still found i cannot send and recv all the messages in one
>> connection.
>> Is there any other work I have to do? Please help !
>>

>
> If you are using *same* svc_client (libcurl enabled) for sending it should
> use a single connection with mod_axis2.
>
> thanks,
> Dinesh
>
>
>
>
> --
> http://nethu.org
>


Reply With Quote
  #10  
Old 11-10-2008, 10:48 AM
Dinesh Premalal
Guest
 
Default Re: About persistent http connections

"Yuanfeng Zhang" <yuanfeng.zhang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Hi Dinesh,
>
> I built the client with libcurl enabled, and set the right AXIS2C_HOME, but
> some error occured while init the svc_client.
> If i build the client without libcurl , it works ok.
> the log is:
> [Mon Nov 10 17:56:35 2008] [error] ..\..\util\src\class_loader.c(167) Loading
> shared library D:\axis2c\axis2c-src-1.5.0\build\deploy/lib/
> axis2_http_sender.dll Failed. DLERROR IS DLL Load Error 126:


I tried with libcurl , one or two weeks back it worked fine. Could you
please check whether libcurl libraries available in the PATH as operating
system be able to load them.

It would be great if you could send us your complete log files.

thanks,
Dinesh
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:14 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.