Skip to content

Commit

Permalink
lowe buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
uoosef committed Aug 29, 2023
1 parent 4af9a35 commit f94be41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (client *Client) handleRequest() {
}

func Copy(network string, src io.Reader, dst io.Writer) {
buf := make([]byte, 256*1024)
buf := make([]byte, 32*1024)

for {
nr, er := src.Read(buf)
Expand Down
2 changes: 1 addition & 1 deletion udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func chanFromConn(conn net.Conn) chan []byte {
c := make(chan []byte)

go func() {
b := make([]byte, 256*1024)
b := make([]byte, 32*1024)

for {
n, err := conn.Read(b)
Expand Down

0 comments on commit f94be41

Please sign in to comment.