go-exploit
go-exploit copied to clipboard
Read Deadline in Protocol TCP
conn.SetReadDeadline should be moved into protocol.TCPReadAmount. Looks like our implementations are calling it outside of the function and not always using the default timeout (protocol.GlobalCommTimeout)
_ = conn.SetReadDeadline(time.Now().Add(time.Duration(protocol.GlobalCommTimeout) * time.Second))