C# Client client connecting on a webservice using the linger option  
Author Message
Steph74





PostPosted: ASMX Web Services and XML Serialization, C# Client client connecting on a webservice using the linger option Top

Hello,

Here is my problem :
* I have a soap server written in C++ and running on VxWorks.
On this server the linger option is activated (value = 1s) so sockets stay connected 1s after closing)
* On the other side I have a C# Client.
(The proxy is generated with wseWsdl3.exe)

The client is calling a method every 20ms and everything works fine exept that after 1 or 2 minutes I have the following error that appears :
Error 10048 : address already in use.

I suppose that .net takes more time to release the client socket than VxWork....
Is there a way to set the LingerOption in the proxy generated with wsewsdl


.NET Development13  
 
 
Steph74





PostPosted: ASMX Web Services and XML Serialization, C# Client client connecting on a webservice using the linger option Top

any suggestion

 
 
ArtySaravana





PostPosted: ASMX Web Services and XML Serialization, C# Client client connecting on a webservice using the linger option Top

Did you try setting the KeepAlive property on the client proxy to false

 
 
Steph74





PostPosted: ASMX Web Services and XML Serialization, C# Client client connecting on a webservice using the linger option Top

Hello,

How can I set this flag in the auto-generated proxy

Thanks for your help