[p4] WSAEADDRINUSE error
kba002 at hotmail.com
Tue Oct 7 15:39:58 PDT 2008
Yes the script uses p4 command line to connect to the server, i will try out your suggestion and convert it to use p4 api
> Date: Tue, 7 Oct 2008 23:03:56 +0200
> From: frank.compagner at guerrilla-games.com
> To: kba002 at hotmail.com
> CC: perforce-user at perforce.com
> Subject: Re: [p4] WSAEADDRINUSE error
> Could it be that it is your script itself that is causing the error?
> Is the script using the p4 commandline to connect to the server? How
> many p4 commands do you run? If you use the p4 commandline a new
> connection to the server is established for every command you run,
> and, if I recall correctly, these are kept alive on the server side
> for some time after the client is finished. So if you run a lot of
> commands in quick succession you can run out of ports on the server.
> If you're using Perl, Ruby or Python, you could build your script on
> the scripting api's. They will allow you to use a single connection
> for any number of commands. For details, see:
> Frank Compagner Guerrilla Games
> bk> Hi
> bk> i have a script that gets run at the end of the day to
> bk> recursively check through all the changes that was submitted
> bk> during the day, to see if the files that are part of the
> bk> changelist follow a certain format. Whenever the changelist has a
> bk> lot of files say 50,000 + i get WSAEADDRINUSE error.
> bk> Connect to server failed; check $P4PORT.
> bk> TCP connect to perforceserver:1666 failed.
> bk> connect: perforceserver:1666: WSAEADDRINUSE
> bk> At the time of the error, only the script is trying to access
> bk> perforce, I was wondering if there is way to find out the
> bk> offending program or operation that is trying the use that port
> bk> that perforce script is trying to use.
> bk> Thanks
> bk> Bala
> bk> _________________________________________________________________
> bk> See how Windows Mobile brings your life together—at home, work, or on the go.
> bk> http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/
> bk> _______________________________________________
> bk> perforce-user mailing list - perforce-user at perforce.com
> bk> http://maillist.perforce.com/mailman/listinfo/perforce-user
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
More information about the perforce-user