From cc0097db32319278e3614efc6d5847d4aab9cfbd Mon Sep 17 00:00:00 2001 From: Alexandr Dubovikov Date: Wed, 1 Nov 2023 00:47:37 +0100 Subject: [PATCH 1/2] fix mem --- HFP.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/HFP.go b/HFP.go index 6e5b0fa..5ac0b94 100644 --- a/HFP.go +++ b/HFP.go @@ -1,7 +1,6 @@ package main import ( - "bytes" "crypto/tls" "flag" "fmt" @@ -124,8 +123,6 @@ func handleConnection(clientConn net.Conn) { } }() - var bufferPool bytes.Buffer - // use a buffer to transfer data between connections buf := make([]byte, 65535) @@ -141,8 +138,6 @@ func handleConnection(clientConn net.Conn) { return } - bufferPool.Write(buf[:n]) - if *Debug == "on" { log.Println("-->|| Got", n, "bytes on wire -- Total buffer size:", len(buf)) } From 9c29bb78782b0d513e7f9e68aaf29b5d1a7b8ece Mon Sep 17 00:00:00 2001 From: Alexandr Dubovikov Date: Wed, 1 Nov 2023 00:48:09 +0100 Subject: [PATCH 2/2] increased version --- HFP.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HFP.go b/HFP.go index 5ac0b94..a12049e 100644 --- a/HFP.go +++ b/HFP.go @@ -16,7 +16,7 @@ import ( "github.com/ivlovric/HFP/queue" ) -const AppVersion = "0.56.7" +const AppVersion = "0.56.8" var localAddr *string = flag.String("l", ":9060", "Local HEP listening address") var remoteAddr *string = flag.String("r", "192.168.2.2:9060", "Remote HEP address")