We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcaef53 commit 741918aCopy full SHA for 741918a
esp32/modsocket.c
@@ -64,6 +64,8 @@ typedef struct _socket_obj_t {
64
unsigned int retries;
65
} socket_obj_t;
66
67
+void _socket_settimeout(socket_obj_t *sock, uint64_t timeout_ms);
68
+
69
NORETURN static void exception_from_errno(int _errno) {
70
// Here we need to convert from lwip errno values to MicroPython's standard ones
71
if (_errno == EINPROGRESS) {
@@ -163,6 +165,7 @@ STATIC mp_obj_t socket_accept(const mp_obj_t arg0) {
163
165
sock->domain = self->domain;
164
166
sock->type = self->type;
167
sock->proto = self->proto;
168
+ _socket_settimeout(sock, UINT64_MAX);
169
170
// make the return value
171
uint8_t *ip = (uint8_t*)&((struct sockaddr_in*)&addr)->sin_addr;
0 commit comments