vncterm: connections problems on Linux

mir

Famous Member
Apr 14, 2012
3,568
127
133
Copenhagen, Denmark
Hi all,

I might have discovered the cause for this bug. The BSD socket implementation in Linux will by default block any new connections to a port which has been in use by an application 60 seconds after the application has been terminated to give incoming packets send when the connection was still valid to be rejected and not accepted by a new application. To disable this feature a socket must manually be configured to disregard this grace period. I have made a number of tests and it seems to match perfectly with this behavior.

man 7 socket:
"SO_REUSEADDR
Indicates that the rules used in validating addresses supplied in a bind(2) call should allow reuse of local addresses. For AF_INET sockets this means that a socket may bind, except when there is an active listening socket bound to the address. When the listening socket is bound to INADDR_ANY with a specific port then it is not possible to bind to this port for any local address. Argument is an integer boolean flag."A more comprehensive paper on the subject can be found here:http://www.serverframework.com/asyn...tions-for-protocols-and-scalable-servers.html
 
What bug?
I don't know how it works in your setup but I am not able to open a console to the same host if I close a console and the wants to open another console again to the same host until a certain time has past after closing the first console. This is especially annoying for CT's since they are, network wise, considered to be the same host.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!