Correct multiplexing

This commit is contained in:
9seconds
2019-11-11 14:04:15 +03:00
parent 0ff9a58780
commit 22905b2a25
19 changed files with 445 additions and 436 deletions
+5 -1
View File
@@ -11,7 +11,11 @@ import (
)
func middleConnection(request *protocol.TelegramRequest) {
telegramConn := packetack.NewProxy(request)
telegramConn, err := packetack.NewProxy(request)
if err != nil {
request.Logger.Debugw("Cannot dial to Telegram", "error", err)
return
}
defer telegramConn.Close()
var clientConn conntypes.PacketAckFullReadWriteCloser