We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42cb778 commit f352e40Copy full SHA for f352e40
1 file changed
src/detail/tcp_client.cpp
@@ -64,7 +64,7 @@ class BlockingGuard {
64
explicit BlockingGuard(databento::detail::Socket socket) : _fd{socket} {
65
#ifdef _WIN32
66
unsigned long mode = 1;
67
- ::ioctlsocket(fd, FIONBIO, &mode);
+ ::ioctlsocket(_fd, FIONBIO, &mode);
68
#else
69
_original_flags = ::fcntl(_fd, F_GETFL, 0);
70
::fcntl(_fd, F_SETFL, _original_flags | O_NONBLOCK);
@@ -74,7 +74,7 @@ class BlockingGuard {
74
~BlockingGuard() {
75
76
unsigned long mode = 0;
77
78
79
::fcntl(_fd, F_SETFL, _original_flags);
80
#endif
0 commit comments