Skip to content

Commit

Permalink
Set read deadline to zero after reading auth code
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Jan 27, 2025
1 parent 095d4c3 commit f6a5823
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handlers/scraper/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func InitRemoteScraper(listenAddr *net.TCPAddr, authCode []byte) error {
conn.Close()
continue
}
conn.SetReadDeadline(time.Time{})

go handleConnection(conn)
}
Expand Down

0 comments on commit f6a5823

Please sign in to comment.