axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@opensource.lk
Subject Re: Why create new client transport object for each invoke?
Date Tue, 09 Nov 2004 08:12:53 GMT
Hi Samisa,
Yes it could affect the server. Please tell how you manage to do it?
thanks
damitha
> I managed to get it working without closing connection all the time. But
> the client runs very slow
> with Axis C++ server.
> With Axis Java the speed is OK.
> I wonder if this is something wrong on server side.
>
> Samisa...
>
> --- damitha@opensource.lk wrote:
>
>> Hi Samisa,
>> > The current client side code creates a new transport for each method
>> > invocation from within the
>> > same Stub, no matter we use HTTP 1.1 or 1.0. With HTTP 1.1, this is
>> > incorrect, as by default, it
>> > should assume persistant connections. When implementing Keep-Alive
>> > support, it is important that
>> > the client transport follow the given HTTP rules.
>> >
>> > I could put some effort and fix this (and I think we should fix this).
>> > However, I want to first
>> > make sure that I am not breaking any serious assumptions made by the
>> code.
>> > So if any of you have
>> > any reasoning for creating the transport object for each invocation,
>> > please let me know.
>>
>> I cannot remember any aparent reason why this is so. Anyway I tried to
>> introduce an initialize method in transport and then create the
>> transport
>> object while in the Call constructor so that transport is created once.
>> Then in each call initialize it will call transport's initialize method
>> without recreateing it. Then I found that in the Stub with several
>> methods, only the  first method get executed successfully and successive
>> method calls result in segfault. I need to have a more close look into
>> this.
>>
>> thanks
>> damitha
>>
>>
>> >
>> > Thanks,
>> > Samisa...
>> >
>> >
>> >
>> >
>> > __________________________________
>> > Do you Yahoo!?
>> > Check out the new Yahoo! Front Page.
>> > www.yahoo.com
>> >
>> >
>> >
>> >
>>
>>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Check out the new Yahoo! Front Page.
> www.yahoo.com
>
>
>
>


Mime
View raw message