Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/unix/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,10 @@ int uv__tcp_keepalive(int fd, int on, unsigned int delay) {
if (delay < 1)
return UV_EINVAL;

#if defined(__wasi__) || defined(__wasm32__)
return 0;
#endif

#ifdef __sun
/* The implementation of TCP keep-alive on Solaris/SmartOS is a bit unusual
* compared to other Unix-like systems.
Expand Down