[cvsnt] Re: cvs server: connect to localhost(x.x.x):2402 fail ed: Only one usage of each socket address (protocol/network address/port) is normally permitted

Mark Victory mark.victory at powervr.com
Wed May 19 15:18:26 BST 2004


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.



> -----Original Message-----
> From: Tony Hoyle [mailto:tmh at nodomain.org]
> Sent: 11 May 2004 17:35
> 
> On Tue, 11 May 2004 18:22:21 +0200, "Morten Jøhnk" <no.email at for.me>
> wrote:
> 
> >Hi Tony and others
> >
> >After switching the lockserver on, we once in a while get this:
> >
> >cvs server: connect to localhost(x.x.x):2402 failed: Only 
> one usage of each
> >socket address (protocol/network address/port) is normally permitted
> >
> >cvs [server aborted]: Couldn't connect to lock server
> >
> >when updating.
> >
> >Server: CVSNT 2.0.41 on Windows 2003
> >Client: CVSNT using SSPI and pserver
> >
> >Any ideas - what causes this, and how to cure it?
> >
> Something's exhausting the supply of TCP/IP sockets...  it would take
> many hundreds (probably thousands) of users for lockserver to do it on
> its own, so I'd expect it's contending with something else..
> 
> netstat -an should list the current state.  CVS uses one for each
> incoming connection + one for the listener, and the lockserver does
> the same.  eg. for 10 users you'd have 22 concurrent sockets.    I
> believe the limit on Win2K/XP is 3,976 sockets.
> 
> Note that because of the TIME_WAIT delay you can end up using quite a
> few if you get a lot of clients connecting in quick succession...
> although I've never seen that build up very much (CVSNT uses
> SO_REUSEADDR anyway).
> 
> If you're under a heavily loaded server anyway and can't find any
> other cause try increasing the number of available virtual ports by
> setting
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Par
> ameters\MaxUserPort
> 
> Tony
> 

FYI it appears CVSNT is quite capable of exhausting the available sockets.
We have a script that runs on the server and performs a large number of
individual rtag operations in quick succession which generated over 4000
simultaneous connections.

The server is CVSNT 2.0.41 on Windows Server 2003, no other apps or servers.
Increasing the MaxUserPort value fixed the problem.

(see
http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/deploy
guide/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/all/de
ployguide/en-us/58791.asp for the official description of that setting).

Mark










******************
This e-mail has been sent from Imagination Technologies Limited.   
PowerVR, Metagence, Ensigma and PURE Digital are divisions 
of Imagination Technologies Limited.

The information contained in this e-mail, including any attachment, 
is confidential and may be legally privileged.  It is intended solely 
for the addressee(s) and access to this e-mail by anyone else is 
unauthorised.  If you are not the intended recipient, any disclosure, 
copying or distribution or use of the information contained in this 
e-mail, is prohibited and may be unlawful. If you have received this
e-mail in error, please notify the sender by return e-mail and then 
delete it from your system.

Internet communications cannot be guaranteed to be secure, 
error or virus-free.  The sender does not accept liability for any errors 
or omissions which arise as a result.

Any views expressed in this message are those of the author, except 
where the author specifies and, with authority, states them to be the 
views of Imagination Technologies Ltd.




More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook