fix expression error in tanslated version

This commit is contained in:
hang
2016-05-18 21:18:57 +08:00
parent 648dbd4adb
commit 789f2cd188
4 changed files with 4 additions and 4 deletions

View File

@@ -266,7 +266,7 @@ Some of you may be thinking the following: this server does not do anything mean
func handleClient(conn net.Conn) {
conn.SetReadDeadline(time.Now().Add(2 * time.Minute)) // set 2 minutes timeout
request := make([]byte, 128) // set maximum request length to 128KB to prevent flood based attacks
request := make([]byte, 128) // set maximum request length to 128B to prevent flood based attacks
defer conn.Close() // close connection before exit
for {
read_len, err := conn.Read(request)