From 00d718585197fea0469df323f619e69143c5690a Mon Sep 17 00:00:00 2001 From: Merlijn Wajer Date: Thu, 1 Jun 2017 23:46:01 +0200 Subject: [PATCH] Remove two TODOs --- sshd.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/sshd.go b/sshd.go index ac28ac5..4e54fb6 100644 --- a/sshd.go +++ b/sshd.go @@ -428,8 +428,6 @@ func handleRequest(client *sshClient, reqs <-chan *ssh.Request) { } func serve(cssh ssh.Channel, conn net.Conn, client *sshClient, timeout time.Duration) { - // TODO: Maybe just do this with defer instead? (And only one copy in a - // goroutine) close := func() { cssh.Close() conn.Close() @@ -438,7 +436,6 @@ func serve(cssh ssh.Channel, conn net.Conn, client *sshClient, timeout time.Dura } } - // TODO: Share timeout between both the read-conn and the write-conn var once sync.Once go func() { //io.Copy(cssh, conn)