mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-18 19:31:02 +00:00
Implement ack timer
This commit is contained in:
1 parent
75892cb523
commit
881b282604
5 files changed
+90
-57
No files matched your search
@@ -178,9 +178,8 @@ struct mg_connection *mg_connect(struct mg_mgr *mgr, const char *url,
|
||||
c->is_udp = (strncmp(url, "udp:", 4) == 0);
|
||||
c->fn = fn;
|
||||
c->is_client = true;
|
||||
c->fd = (void *) (size_t) -1; // Set to invalid socket
|
||||
c->fn_data = fn_data;
|
||||
MG_DEBUG(("%lu -1 %s", c->id, url));
|
||||
MG_DEBUG(("%lu %p %s", c->id, c->fd, url));
|
||||
mg_call(c, MG_EV_OPEN, NULL);
|
||||
mg_resolve(c, url);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user