<?xml version="1.0" encoding="UTF-8" ?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Catalyst Development</title>
<link>http://forums.catalyst.com/</link>
<description>Technical Support Forums</description>
<managingEditor>forums@catalyst.com</managingEditor>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>phpbb3 rss generator</generator>
<language>en</language>
<lastBuildDate>Fri, 03 Jul 2009 02:18:00 GMT</lastBuildDate>
<atom:link href="http://forums.catalyst.com/rss.php" rel="self" type="application/rss+xml" />
<image>
	<url>http://forums.catalyst.com/styles/prosilver/imageset/catalyst_rss.gif</url>
	<title>Catalyst Development</title>
	<link>http://forums.catalyst.com/</link>
	<width>1</width>
	<height>1</height>
</image>
<item>
<title>Re: Listener refuses connection most of the time</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4997#p4997</link>
<description>Author: Mike Stefanik&lt;br /&gt;
Post subject: Re: Listener refuses connection most of the time&lt;br /&gt;
Posted: Tue Jun 30, 2009 2:25 pm&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
You could do that with a blocking listening socket. I'd recommend spinning up a thread specifically for the job (rather than doing it in the main UI thread), but you could just loop around calling Accept; when it succeeds, spin up a new thread for the client session. You could set the timeout period to be fairly low, a few seconds, if you wanted to track idle time.&lt;/span&gt;&lt;br /&gt;
</description>
<author>Mike Stefanik</author>
<category>SocketWrench .NET Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=21&amp;t=1232</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4997#p4997</guid>
<pubDate>Tue, 30 Jun 2009 21:25:33 GMT</pubDate>
</item>
<item>
<title>Re: Listener refuses connection most of the time</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4996#p4996</link>
<description>Author: David Rettger&lt;br /&gt;
Post subject: Re: Listener refuses connection most of the time&lt;br /&gt;
Posted: Tue Jun 30, 2009 2:12 pm&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
Can I just skip using On_Accept and launch a thread that will create the listener socket, loop while not terminated, and check for incoming sockets?  That would probably be the easiest thing to do, assuming I can check socket.accept() continuously without causing problems.  (If it were socket.blocking = True, would it just block until a new connection came in or it timed out?)&lt;/span&gt;&lt;br /&gt;
</description>
<author>David Rettger</author>
<category>SocketWrench .NET Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=21&amp;t=1232</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4996#p4996</guid>
<pubDate>Tue, 30 Jun 2009 21:12:38 GMT</pubDate>
</item>
<item>
<title>Re: Listener refuses connection most of the time</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4995#p4995</link>
<description>Author: Mike Stefanik&lt;br /&gt;
Post subject: Re: Listener refuses connection most of the time&lt;br /&gt;
Posted: Tue Jun 30, 2009 11:24 am&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
I'm afraid I don't have any specific code examples for this, but there's generally one of two approaches that you could take. One would be that you create a loop and synchronize the spinning up of threads that create a new instance of the class, calling the Accept method with the listening socket's handle. If the Accept method fails, you would need to signal back to the listener that it should exit the loop and wait for the next OnAccept event to trigger. The other approach (and perhaps simpler, depending on your application design) would be to actually create the new class instance inside the OnAccept handler, call the Accept method with the listening socket handle, and if it succeeds, spin up a new thread and pass that class instance to the thread. If it fails, then you exit the loop. The only caveat with this approach is that you either need to disable thread affinity (by setting the ThreadModel property) or you need to call AttachThread in the new client session thread that starts, so that it &quot;inherits&quot; that instance of the class. The documentation has some more information about AttachThread and the threading models.&lt;/span&gt;&lt;br /&gt;
</description>
<author>Mike Stefanik</author>
<category>SocketWrench .NET Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=21&amp;t=1232</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4995#p4995</guid>
<pubDate>Tue, 30 Jun 2009 18:24:38 GMT</pubDate>
</item>
<item>
<title>Re: Listener refuses connection most of the time</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4994#p4994</link>
<description>Author: David Rettger&lt;br /&gt;
Post subject: Re: Listener refuses connection most of the time&lt;br /&gt;
Posted: Fri Jun 26, 2009 2:08 pm&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
I bet your analysis is correct.  One question, though...&lt;br /&gt;&lt;br /&gt;Right now when OnAccept fires, we pick up the socket handle from the OnAccept e.Handle parameter.  A Session class is created, handle is passed in, and the session class actually calls Socket.Accept.&lt;br /&gt;&lt;br /&gt;Would you happen to have a code chunk where you would loop inside OnAccept, calling accept and then creating the class and passing things through?&lt;/span&gt;&lt;br /&gt;
</description>
<author>David Rettger</author>
<category>SocketWrench .NET Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=21&amp;t=1232</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4994#p4994</guid>
<pubDate>Fri, 26 Jun 2009 21:08:09 GMT</pubDate>
</item>
<item>
<title>Re: FTP Error: The networking subsystem has not been initialized</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4993#p4993</link>
<description>Author: Mike Stefanik&lt;br /&gt;
Post subject: Re: FTP Error: The networking subsystem has not been initialized&lt;br /&gt;
Posted: Fri Jun 26, 2009 1:21 pm&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
Internally, that's caused by an error that's reported by Microsoft's Windows Sockets API when the WSAStartup function fails and returns WSASYSNOTREADY. Here's Microsoft's explanation for the error:&lt;br /&gt;&lt;br /&gt;WSASYSNOTREADY&lt;br /&gt;Network subsystem is unavailable. &lt;br /&gt;&lt;br /&gt;This error is returned by WSAStartup if the Windows Sockets implementation cannot function at this time because the underlying system it uses to provide network services is currently unavailable. Users should check:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;That the appropriate Windows Sockets DLL file is in the current path. &lt;/li&gt;&lt;br /&gt;&lt;li&gt;That they are not trying to use more than one Windows Sockets implementation simultaneously. If there is more than one Winsock DLL on your system, be sure the first one in the path is appropriate for the network subsystem currently loaded. &lt;/li&gt;&lt;br /&gt;&lt;li&gt;The Windows Sockets implementation documentation to be sure all necessary components are currently installed and configured correctly. &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Unfortunately that's as specific as it gets, but it's generally related to a failure loading the Windows Sockets DLL or some configuration issue with the TCP/IP stack. There also may be some other unrelated process going on that's interfering with it, such as the system running low on non-paged memory, something along those lines. As far as implementation is concerned, nothing was changed with how we initialize the WIndows Sockets API between version 5.0 and 6.0; that portion of the code is identical.&lt;/span&gt;&lt;br /&gt;
</description>
<author>Mike Stefanik</author>
<category>SocketTools Visual Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=6&amp;t=1235</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4993#p4993</guid>
<pubDate>Fri, 26 Jun 2009 20:21:00 GMT</pubDate>
</item>
<item>
<title>FTP Error: The networking subsystem has not been initialized</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4992#p4992</link>
<description>Author: Marcia Cupery&lt;br /&gt;
Post subject: FTP Error: The networking subsystem has not been initialized&lt;br /&gt;
Posted: Fri Jun 26, 2009 11:35 am&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
Hi,&lt;br /&gt;&lt;br /&gt;We recently updated our software to use csftpax6.ocx.  One of our customers who does FTP sends on an automated basis several times per hour (approx. every 5 minutes) has reported that after running for about 5 days, the following error occurs upon attempting to establish an FTP connection:&lt;br /&gt;&lt;br /&gt;     The networking subsystem has not been initialized&lt;br /&gt;&lt;br /&gt;which gets replaced by this error about 50 minutes later:&lt;br /&gt;&lt;br /&gt;     Automation error&lt;br /&gt;     A dynamic link library (DLL) initialization routine failed. &lt;br /&gt;&lt;br /&gt;They state this can only be resolved by shutting down and restarting the software.  What could be the cause of this error sequence?  Any insight would be most appreciated.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Marcia&lt;/span&gt;&lt;br /&gt;
</description>
<author>Marcia Cupery</author>
<category>SocketTools Visual Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=6&amp;t=1235</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4992#p4992</guid>
<pubDate>Fri, 26 Jun 2009 18:35:36 GMT</pubDate>
</item>
<item>
<title>Re: SSH Key Files</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4991#p4991</link>
<description>Author: Tim Townsend&lt;br /&gt;
Post subject: Re: SSH Key Files&lt;br /&gt;
Posted: Thu Jun 25, 2009 12:53 pm&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
Thanks, Mike.  Per usual, they are lining up at the gate.  No pitchforks yet, but I am sure it is coming.  Cheers - Tim&lt;/span&gt;&lt;br /&gt;
</description>
<author>Tim Townsend</author>
<category>SocketTools Library Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=7&amp;t=1172</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4991#p4991</guid>
<pubDate>Thu, 25 Jun 2009 19:53:37 GMT</pubDate>
</item>
<item>
<title>Re: SSH Key Files</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4990#p4990</link>
<description>Author: Mike Stefanik&lt;br /&gt;
Post subject: Re: SSH Key Files&lt;br /&gt;
Posted: Thu Jun 25, 2009 12:51 pm&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
I'm afraid SP1 doesn't, but it may make it into the next service pack update. The feature was back-burnered for a while there while we focused on some other issues, but it is something I'd like to get in. I'm glad that the update resolved the problem with parsing some of the atypical directory listings that were being returned.&lt;/span&gt;&lt;br /&gt;
</description>
<author>Mike Stefanik</author>
<category>SocketTools Library Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=7&amp;t=1172</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4990#p4990</guid>
<pubDate>Thu, 25 Jun 2009 19:51:50 GMT</pubDate>
</item>
<item>
<title>Re: SSH Key Files</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4989#p4989</link>
<description>Author: Tim Townsend&lt;br /&gt;
Post subject: Re: SSH Key Files&lt;br /&gt;
Posted: Thu Jun 25, 2009 12:06 pm&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
Mike - Does the sp1 support SSH key files?  It is working very nicely for directories now.  Tim&lt;/span&gt;&lt;br /&gt;
</description>
<author>Tim Townsend</author>
<category>SocketTools Library Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=7&amp;t=1172</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4989#p4989</guid>
<pubDate>Thu, 25 Jun 2009 19:06:04 GMT</pubDate>
</item>
<item>
<title>Re: AutoRedirect</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4988#p4988</link>
<description>Author: Mike Stefanik&lt;br /&gt;
Post subject: Re: AutoRedirect&lt;br /&gt;
Posted: Thu Jun 25, 2009 10:47 am&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
It doesn't look like you're doing anything wrong. I've been able to reproduce a problem where the control isn't recognizing that the new resource location has been found, so it keeps asking for it again, and eventually gives up because it thinks that it's in a redirection loop (that's why you're seeing the multiple OnRedirect events firing). I'll make sure this is entered into our bug database. For now, the workaround is that if you're getting a redirection status code, look at the value of the Location header field (using the GetHeader method), and that will tell you where you need to go.&lt;/span&gt;&lt;br /&gt;
</description>
<author>Mike Stefanik</author>
<category>SocketTools Visual Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=6&amp;t=1234</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4988#p4988</guid>
<pubDate>Thu, 25 Jun 2009 17:47:27 GMT</pubDate>
</item>
<item>
<title>Re: GetFile and append</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4987#p4987</link>
<description>Author: Mike Stefanik&lt;br /&gt;
Post subject: Re: GetFile and append&lt;br /&gt;
Posted: Thu Jun 25, 2009 10:41 am&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
You have to specify the byte offset of the resource that you're requesting, and the control will ask for only that range of data, and will write it out to that offset in the local file. It was designed this way to support resuming HTTP file transfers that were canceled, not as a general method to append file data. In other words, it can't be used to append the complete contents of a resource to an existing file; if the byte offset is 0 (the default), the control will always overwrite the file. If what you want to do is retrieve a resource and append it to an existing file, your can use the GetData method to retrieve the data into a string or byte array, and then write it to the end of the file.&lt;br /&gt;&lt;br /&gt;Just for general information, even when specifying a byte offset, the other caveat is that the server needs to support the range request for the resource. Not all of them do, and for those that do, it may not be for all types of content. For example, the server may support content ranges for static files, but not for dynamically created content such as PHP pages or pages that use server-side includes.&lt;/span&gt;&lt;br /&gt;
</description>
<author>Mike Stefanik</author>
<category>SocketTools Visual Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=6&amp;t=1233</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4987#p4987</guid>
<pubDate>Thu, 25 Jun 2009 17:41:19 GMT</pubDate>
</item>
<item>
<title>AutoRedirect</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4986#p4986</link>
<description>Author: Dave Howard&lt;br /&gt;
Post subject: AutoRedirect&lt;br /&gt;
Posted: Wed Jun 24, 2009 6:01 pm&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
Socket Tools version 6 secure visual edition, HyperText Transfer Protocol Control.  I cannot seem to get the AutoRedirect to work no matter what.  I have tried setting both the .AutoRedirect option to true and the .Options setting to 4.  I have tried hitting both google.com (which redirects to &lt;!-- w --&gt;&lt;a class="postlink" href="http://www.google.com"&gt;http://www.google.com&lt;/a&gt;&lt;!-- w --&gt;) and yahoo.com (redirects to &lt;!-- w --&gt;&lt;a class="postlink" href="http://www.yahoo.com"&gt;http://www.yahoo.com&lt;/a&gt;&lt;!-- w --&gt;).  I can place a messagebox in the OnRedirect event and I can see that the Resource value is being properly set to the redirect resource but the control always returns a 301.&lt;br /&gt;&lt;br /&gt;If .AutoRedirect is set false, the control returns 301 and the OnRedirect event fires once.  When I set .AutoRedirect to true, the control still returns 301 but the OnRedirect event fires 3 times.&lt;br /&gt;&lt;br /&gt;Any clue what Im doing wrong here?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Dave.&lt;/span&gt;&lt;br /&gt;
</description>
<author>Dave Howard</author>
<category>SocketTools Visual Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=6&amp;t=1234</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4986#p4986</guid>
<pubDate>Thu, 25 Jun 2009 01:01:04 GMT</pubDate>
</item>
<item>
<title>GetFile and append</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4985#p4985</link>
<description>Author: Dave Howard&lt;br /&gt;
Post subject: GetFile and append&lt;br /&gt;
Posted: Wed Jun 24, 2009 5:52 pm&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
Socket Tools version 6, secure visual edition, HyperText Transfer Protocol Control.  The GETFILE method implies that I can append to a file:&lt;br /&gt;&lt;br /&gt;LocalFile &lt;br /&gt;A string that specifies the file on the local system that will be created, overwritten or appended to. The file pathing and name conventions must be that of the local host. &lt;br /&gt;&lt;br /&gt;However, I cant seem to find a way to do it.  Any clues on how I can do this and can it be added if it currently isnt supported?  Every option seems to overwrite the file.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Dave.&lt;/span&gt;&lt;br /&gt;
</description>
<author>Dave Howard</author>
<category>SocketTools Visual Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=6&amp;t=1233</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4985#p4985</guid>
<pubDate>Thu, 25 Jun 2009 00:52:28 GMT</pubDate>
</item>
<item>
<title>Re: Listener refuses connection most of the time</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4984#p4984</link>
<description>Author: Mike Stefanik&lt;br /&gt;
Post subject: Re: Listener refuses connection most of the time&lt;br /&gt;
Posted: Wed Jun 24, 2009 1:25 pm&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
Are you calling the Accept method once per event trigger? What may be happening is that the queued events aren't getting processed quickly enough because the event notification messages are being routed through the Windows message queue. One thought would be to handle it kind of like how you would an OnRead event: in the OnAccept event handler, repeatedly call the Accept method and spin up new threads as long as it's successful; when an error occurs indicating that there's no more client sessions to accept, then exit the handler and wait for OnAccept to fire again.&lt;/span&gt;&lt;br /&gt;
</description>
<author>Mike Stefanik</author>
<category>SocketWrench .NET Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=21&amp;t=1232</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4984#p4984</guid>
<pubDate>Wed, 24 Jun 2009 20:25:21 GMT</pubDate>
</item>
<item>
<title>Re: Listener refuses connection most of the time</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4983#p4983</link>
<description>Author: David Rettger&lt;br /&gt;
Post subject: Re: Listener refuses connection most of the time&lt;br /&gt;
Posted: Wed Jun 24, 2009 10:41 am&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
I have experienced the same issue that Fiefie noted.  I am using SocketWrench.Net that was included in the latest version of Secure Socket Tools .Net. which I obtained a week or so ago.  I have an application that runs 24x7, listening for connections.  Right now there are about 100 users connected.  If I kill the connections, all those users automatically attempt to log in within seconds.  The application began life as your sample Server program and was modified from there.  The On_Accept function does nothing but launch a new session thread class and pass the socket Handle through to it.&lt;br /&gt;&lt;br /&gt;I modified the program to contain a text field where I can set the Backlog value.  If I set it to 1, I see connections start up in fairly rapid succession.  If I set it to 5, 100 or 200, one or two connections will start and then nothing else will happen.  To accept any more, I have to toggle Pause/Listen, basically restarting the listen function.  A couple more will start and then no more will come in.  At that point, if I set the backlog back to 1 and toggle pause/listen, all the connections will come pouring in again.  This can be reproduced 100% of the time.&lt;br /&gt;&lt;br /&gt;Any thoughts?&lt;br /&gt;&lt;br /&gt;Socket Version: 6.0.60.1058&lt;/span&gt;&lt;br /&gt;
</description>
<author>David Rettger</author>
<category>SocketWrench .NET Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=21&amp;t=1232</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4983#p4983</guid>
<pubDate>Wed, 24 Jun 2009 17:41:59 GMT</pubDate>
</item>
<item>
<title>Re: Listener refuses connection most of the time</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4982#p4982</link>
<description>Author: Mike Stefanik&lt;br /&gt;
Post subject: Re: Listener refuses connection most of the time&lt;br /&gt;
Posted: Wed Jun 24, 2009 9:30 am&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
That's the default value, but it can be set higher on different platforms (various versions of Windows support different maximum backlogs). It doesn't hurt anything if you set it to a value higher than the system supports, it should just use whatever maximum value it allows.&lt;/span&gt;&lt;br /&gt;
</description>
<author>Mike Stefanik</author>
<category>SocketWrench .NET Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=21&amp;t=1232</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4982#p4982</guid>
<pubDate>Wed, 24 Jun 2009 16:30:35 GMT</pubDate>
</item>
<item>
<title>Re: Listener refuses connection most of the time</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4981#p4981</link>
<description>Author: Fiefie Niles&lt;br /&gt;
Post subject: Re: Listener refuses connection most of the time&lt;br /&gt;
Posted: Tue Jun 23, 2009 2:16 pm&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
Yes, we are using multi threaded, each client is each own thread.&lt;br /&gt;The server machine is a Win 2000 SP4 machine.&lt;br /&gt;So I can set sockServer.Backlog to be up to 200 ?&lt;br /&gt;On the documentation it says the default of sockServer.Backlog is 5. Is that for a non server machine ?&lt;/span&gt;&lt;br /&gt;
</description>
<author>Fiefie Niles</author>
<category>SocketWrench .NET Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=21&amp;t=1232</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4981#p4981</guid>
<pubDate>Tue, 23 Jun 2009 21:16:35 GMT</pubDate>
</item>
<item>
<title>Re: Listener refuses connection most of the time</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4980#p4980</link>
<description>Author: Mike Stefanik&lt;br /&gt;
Post subject: Re: Listener refuses connection most of the time&lt;br /&gt;
Posted: Tue Jun 23, 2009 2:13 pm&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
If you're getting &quot;connection refused&quot; errors with an active, running service it actually means that your server is not accepting the client connections fast enough, and there's no more space in the backlog queue to &quot;park&quot; the inbound connection until you do accept. Increasing the backlog should help the situation, not make it worse. The maximum backlog value depends on the Windows platform, but on servers it can have a value as high as 200.&lt;br /&gt;&lt;br /&gt;If you're getting a high volume of connections, the most important thing is that you need to accept them as quickly as possible. If you're using a multi-threaded design (which you should be), you should immediately spin up a new thread and start it executing as soon as the connection attempt is made. Having the server block and do some other processing while there are inbound connections will effectively force them to be backlogged, and you can run into this error if the backlog queue of pending connections isn't cleared quickly enough by your service.&lt;/span&gt;&lt;br /&gt;
</description>
<author>Mike Stefanik</author>
<category>SocketWrench .NET Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=21&amp;t=1232</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4980#p4980</guid>
<pubDate>Tue, 23 Jun 2009 21:13:06 GMT</pubDate>
</item>
<item>
<title>Re: Socketwrench Error</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4979#p4979</link>
<description>Author: Ewan Crawford&lt;br /&gt;
Post subject: Re: Socketwrench Error&lt;br /&gt;
Posted: Sat Jun 20, 2009 8:37 am&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
More on this...&lt;br /&gt;&lt;br /&gt;I have been able to prove without doubt that if we send a UDP packet on port 4005 via one ethernet interface, and we send at the exact same time a TCP packet on a separate ethernet interface on port 1066 as a broadcast on the InternetServer instance - all of the UDP sockets on the usercontrol are detroyed.&lt;/span&gt;&lt;br /&gt;
</description>
<author>Ewan Crawford</author>
<category>SocketWrench .NET Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=21&amp;t=1231</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4979#p4979</guid>
<pubDate>Sat, 20 Jun 2009 15:37:25 GMT</pubDate>
</item>
<item>
<title>Listener refuses connection most of the time</title>
<link>http://forums.catalyst.com/viewtopic.php?p=4978#p4978</link>
<description>Author: Fiefie Niles&lt;br /&gt;
Post subject: Listener refuses connection most of the time&lt;br /&gt;
Posted: Fri Jun 19, 2009 1:05 pm&lt;br /&gt;
&lt;br /&gt;&lt;span class="postbody"&gt;
We are using VB.NET 2008 and SocketWrench .NET edition version 5.0.0.5020.&lt;br /&gt;We have an application that gets a lot of request for connections at the same time, then it sends a string to the client, then it disconnects the client.&lt;br /&gt;Clients requests to connect to this application fail more often than it succeeds (the client socket connection attempt yields a socket error 10061 – Connection Refused).  &lt;br /&gt;I set the BackLog property of the listener to 3.&lt;br /&gt;How can I fix this problem ?&lt;br /&gt;Shall I set the Backlog property to anything other than 3 ? (using the default 5 was worse).&lt;br /&gt;&lt;br /&gt;The machine is a Win 2000 SP4 machine.&lt;br /&gt;We have the same application that runs on the same machine on a different port, and since hardly anybody connects to that one, we can always connect to that one, and never gets the &quot;connection refused&quot; rejection.&lt;br /&gt;Thank you.&lt;br /&gt;&lt;br /&gt;            sockServer.Backlog = 3&lt;br /&gt;            If Not sockServer.Listen(strLocalAddress, nLocalPort) Then&lt;br /&gt;            End If&lt;/span&gt;&lt;br /&gt;
</description>
<author>Fiefie Niles</author>
<category>SocketWrench .NET Edition</category>
<comments>http://forums.catalyst.com/posting.php?mode=reply&amp;f=21&amp;t=1232</comments>
<guid isPermaLink="true">http://forums.catalyst.com/viewtopic.php?p=4978#p4978</guid>
<pubDate>Fri, 19 Jun 2009 20:05:02 GMT</pubDate>
</item>
</channel>
</rss>