You are hereForums / Bugs / [Resolved] RPC server cannot reuse port after squid restart

[Resolved] RPC server cannot reuse port after squid restart


6 replies [Last post]
Anonymous
[Resolved] RPC server cannot reuse port after squid restart
Printer-friendly versionSend to friend

Hi,

After you gracefully stop squid, and immediatly start it again (AKA restart :) ), The RPC server cannot reattach to the port.

setting SimpleXMLRPCServer.allow_reuse_address = 1 solves this issue.
Sexcam

admin's picture
Online
Joined: Nov 2 2008

I think I missed this while coding. Thanks for pointing it out. Will update in the next version.

Thanks for considering videocache :)

K4c (not verified)

I think this option
SimpleXMLRPCServer.allow_reuse_address = 1
and
tcp_tw_reuse = 1

Should be pointed out on first page as necesary for videocache working. Without it is useless software. It was hanging all the time on my system. Will see how it goes now.

tcp_tw_recycle - DON`T set it to 1, it breaks NAT connections !!!

It took me 1 whole day to find the solution. Please post most important information in visible place on your website.

admin's picture
Online
Joined: Nov 2 2008

K4c,

Thanks for pointing out the necessary instructions here. I didn't post them on configuration page because modifying the tcp_tw_reuse is generally not recommended.

Anyways, it'll be great to know how it is working for you now. Please share.

Thank You!

Anonymous (not verified)

Where do I set this SimpleXMLRPCServer.allow_reuse_address option?

admin's picture
Online
Joined: Nov 2 2008

Anon,

You need not set this. 1.9.1 has already this set to 1.

Thank You!

K4c (not verified)

Right now i had to stop using videocache, becouse it crashes all the time. Nothing helps, reuse doesn`t help and there where some problems with connections tracking when i set it to 1. I turned off videocache and I`m waiting for next version, becouse script is really usefull and safes band.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <code>
  • Lines and paragraphs break automatically.
  • HTML tags will be transformed to conform to HTML standards.
  • Search Engines will index and follow ONLY links to allowed domains.

More information about formatting options

CAPTCHA
Are you a human visitor ?
Image CAPTCHA
Enter the characters (without spaces) shown in the image.

Buy Now

Videocache Bundle (RPM and tar archive) is available for just $39.99. Secure your copy now by clicking the button below.
For details, check this page.

Recent comments

Spread it

Thank you for spreading the word!

Who's online

There are currently 1 user and 131 guests online.