Hi Samisa/All
I tried to modify the calculator program to check whether axis server keeps state.I did this by having a static variable in the server code of Calculator.So an addition would basically return the sum till now + the sum of the 2 numbers passed.
So a call like ./calculator add 2 3 returns :5
Next call ./calculator add 2 3 returns:10 ie.( 5 + 5 )
The results I got were not as expected.The Server side seemed to return 5 for the first five trials and 10 for the next five trials.
with the same input.
My reasoning was that this may be due to non persistent connections but I see that HTTP 1.1 is being used.
Could someone let me know why this is happening and how this can be corrected.
Krishna
Samisa Abeysinghe wrote:
Hi Krishna, If you are using HTTP 1.1, keep alive is the default and the connection will be kept open, by default. If you are using HTTP 1.0, you have to use the "connection:keep alive" header to keep the connection open. Thanks, Samisa...
On Fri, 2005-04-01 at 19:47, krishna wrote:
Hi All
I am trying to have a persistent connection using axis 1.5 alpha.I did see one could "Keep Alive" connections after AXISCPP-176.Any idea as to how this can be done?
Regards
Krishna
