1 – 3 of 3
Blogger cwam said...

Hi,
I have same problem of web service slowdowns:
web service in gSOAP 2.7.10, called by a .NET clients in loop.

I turned gsoap KeepAlive to false. This helps but doesn't solve.

From there http://www.isi.edu/atomic2/pcbswap.html
it could be a solution to manually send RST order. But how (in C#) ?
Any ideas ?

05 February, 2009 00:32

Blogger Yakko Warner said...

Huh. That's an interesting idea. According to that link, it does seem that, if one can get the client to send an RST, it just might ditch the TIME_WAIT loop.

A quick googling, though, seems to indicate that RST is something that is sent automatically (ironically, the posts I'm finding are of people complaining about RSTs going out when people don't want them). I'll have to poke around a bit and see if I can find a way to force an RST and see what happens. With any luck, I'll be able to post an update here.

Thanks for the lead!

06 February, 2009 10:05

Blogger Yakko Warner said...

I got this email from Gareth (don't know if you want me using your full name, so I won't), which brings up a good point:

--------------------
While implementing this though I did notice a small issue that can occur. If you use some of the ports then close the app and re-open, the static counter starts again from 5001, which if within the time frame (240 seconds from memory), you will again recieve the same error.

My solution was to save the current port (as they were being used) to a user setting and then use the "las used port" setting when the static is initilized - effectively picking up from where is left off...
--------------------

Incidentally, I did look into the RST possibility. It may not be possible to do if this is considered "low-level socket access", which if I was reading right is disallowed as of Windows XP without a special hack.

In other words, "You're not allowed to fix our broken implementation."

16 February, 2009 15:39

Your civil comments are appreciated. Thanks!
You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot