all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH common] Revert "daemon: add compat code for pmgproxy 6.x"
@ 2021-06-11 15:55 Stoiko Ivanov
  2021-06-15  8:19 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Stoiko Ivanov @ 2021-06-11 15:55 UTC (permalink / raw)
  To: pve-devel

This reverts commit a3777dce67cf17cafa82deeeedd9e6067eeb2e2e.

With the upcoming release of pmg-api 7.0 we included the changes for
configuring a LISTEN_IP, thus this compatibility code is not needed
anymore.

Quickly tested with current pmg-api master

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
---
 src/PVE/Daemon.pm | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/src/PVE/Daemon.pm b/src/PVE/Daemon.pm
index 2095001..2ab4f35 100644
--- a/src/PVE/Daemon.pm
+++ b/src/PVE/Daemon.pm
@@ -799,7 +799,7 @@ sub register_status_command {
 # some useful helper
 
 sub create_reusable_socket {
-    my ($self, $port, $host, $family) = @_;
+    my ($self, $port, $host) = @_;
 
     die "no port specifed" if !$port;
 
@@ -818,6 +818,7 @@ sub create_reusable_socket {
 
 	$socket->fcntl(Fcntl::F_SETFD(), Fcntl::FD_CLOEXEC);
     } else {
+
 	my %sockargs = (
 	    LocalPort => $port,
 	    Listen => SOMAXCONN,
@@ -825,16 +826,7 @@ sub create_reusable_socket {
 	    GetAddrInfoFlags => 0,
 	    ReuseAddr => 1,
 	);
-
-	# FIXME: drop this if clause and the $family parameter with 7.0:
-	# compat code for pmgproxy
-	if (defined($family)) {
-	    $socket = IO::Socket::IP->new(
-		Family => $family,
-		LocalHost => $host,
-		%sockargs) ||
-		die "unable to create socket - $@\n";
-	} elsif (defined($host)) {
+	if (defined($host)) {
 	    $socket = IO::Socket::IP->new( LocalHost => $host, %sockargs) ||
 		die "unable to create socket - $@\n";
 	} else {
-- 
2.20.1





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pve-devel] applied: [PATCH common] Revert "daemon: add compat code for pmgproxy 6.x"
  2021-06-11 15:55 [pve-devel] [PATCH common] Revert "daemon: add compat code for pmgproxy 6.x" Stoiko Ivanov
@ 2021-06-15  8:19 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2021-06-15  8:19 UTC (permalink / raw)
  To: Proxmox VE development discussion, Stoiko Ivanov

On 11.06.21 17:55, Stoiko Ivanov wrote:
> This reverts commit a3777dce67cf17cafa82deeeedd9e6067eeb2e2e.
> 
> With the upcoming release of pmg-api 7.0 we included the changes for
> configuring a LISTEN_IP, thus this compatibility code is not needed
> anymore.
> 
> Quickly tested with current pmg-api master
> 
> Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
> ---
>  src/PVE/Daemon.pm | 14 +++-----------
>  1 file changed, 3 insertions(+), 11 deletions(-)
> 
>

applied, thanks!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-15  8:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-11 15:55 [pve-devel] [PATCH common] Revert "daemon: add compat code for pmgproxy 6.x" Stoiko Ivanov
2021-06-15  8:19 ` [pve-devel] applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal