mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
Turn off Nagle algorithm to decrease latency.
This is safe because of the way writes are performed: for each transmission, all outgoing messages are concatenated in memory and only a single write() syscall is made.
This commit is contained in:
@@ -53,6 +53,7 @@ class TCPStream : public NetworkStream {
|
||||
|
||||
llvm::StringRef getPeerIP() const override;
|
||||
int getPeerPort() const override;
|
||||
void setNoDelay() override;
|
||||
|
||||
TCPStream(const TCPStream& stream) = delete;
|
||||
TCPStream& operator=(const TCPStream&) = delete;
|
||||
|
||||
Reference in New Issue
Block a user