| Index: runtime/bin/socket_win.cc
|
| diff --git a/runtime/bin/socket_win.cc b/runtime/bin/socket_win.cc
|
| index 4fcf156a2cce4f27b5b664b1de59e9eb30aee15a..d36fa4362c1dd7ae9d5c31e46a42e6ad2c64de56 100644
|
| --- a/runtime/bin/socket_win.cc
|
| +++ b/runtime/bin/socket_win.cc
|
| @@ -310,4 +310,10 @@ bool Socket::SetBlocking(intptr_t fd) {
|
| return SetBlockingHelper(fd, true);
|
| }
|
|
|
| +
|
| +bool Socket::SetNoDelay(intptr_t fd, bool enabled) {
|
| + SocketHandle* handle = reinterpret_cast<SocketHandle*>(fd);
|
| + return setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on)) == 0;
|
| +}
|
| +
|
| #endif // defined(TARGET_OS_WINDOWS)
|
|
|