Skip to content

Commit

Permalink
fix 5556, The TCP_INFO option for sockets is not available under Cygwin.
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Nov 14, 2024
1 parent 619b835 commit f975ae7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext-src/swoole_socket_coro.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1954,6 +1954,7 @@ static PHP_METHOD(swoole_socket_coro, getOption) {
add_assoc_long(return_value, "usec", (timeout - (double) sec) * 1000000);
break;
}
#ifdef TCP_INFO
case TCP_INFO: {
tcp_info info;
socklen_t len = sizeof(info);
Expand All @@ -1968,6 +1969,7 @@ static PHP_METHOD(swoole_socket_coro, getOption) {
}
break;
}
#endif
default: {
optlen = sizeof(other_val);

Expand Down

0 comments on commit f975ae7

Please sign in to comment.