Skip to content

Commit

Permalink
go back to larger buffers, closes #139
Browse files Browse the repository at this point in the history
  • Loading branch information
nlf committed Mar 8, 2016
1 parent e9c7c6f commit 57cfe62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib_proxy.go
Expand Up @@ -108,14 +108,14 @@ func Proxy(ip string, done chan error) error {
finished := make(chan error, 1)

go func() {
buf := make([]byte, 512)
buf := make([]byte, 8092)
_, err := io.CopyBuffer(conn, backend, buf)
conn.Close()
finished <- err
}()

go func() {
buf := make([]byte, 512)
buf := make([]byte, 8092)
_, err := io.CopyBuffer(backend, conn, buf)
backend.CloseWrite()
finished <- err
Expand Down

0 comments on commit 57cfe62

Please sign in to comment.