Skip to content

Commit

Permalink
Revert "Add timeout to smo sockets (#1651)"
Browse files Browse the repository at this point in the history
This reverts commit dba5e3f.

Per comments on the commit, this breaks SMO on Windows.
  • Loading branch information
shakesoda committed Nov 14, 2022
1 parent d10f433 commit d55acb1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ezsockets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ bool EzSockets::create(EzSockets_Proto Protocol, int Type)
}

data->sock = socket(AF_INET, Type, realproto);
if (data->sock > SOCKET_NONE) {
struct timeval tv = { 5, 0 };
setsockopt(data->sock, SOL_SOCKET, SO_RCVTIMEO, (const char *)&tv, sizeof(struct timeval));
}
lastCode = data->sock;
return data->sock > SOCKET_NONE; // Socket must be Greater than 0
}
Expand Down

0 comments on commit d55acb1

Please sign in to comment.