diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-30 13:23:39 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-30 13:23:39 +0100 |
| commit | 31d2586e3296d424e51848ada963299b0da89324 (patch) | |
| tree | 203190931bc0d189653570d2ce526b1eb0695cb9 /opentracker.c | |
| parent | cbf4b60df6c6c8c7208dc29708677d24b2724deb (diff) | |
Defer accepts until some data actually is there
Diffstat (limited to 'opentracker.c')
| -rw-r--r-- | opentracker.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/opentracker.c b/opentracker.c index 27b2570..ec92fe0 100644 --- a/opentracker.c +++ b/opentracker.c | |||
| @@ -339,6 +339,7 @@ static void listen_bind_one(ot_listen *entry) { | |||
| 339 | if (entry->proto == FLAG_TCP) { | 339 | if (entry->proto == FLAG_TCP) { |
| 340 | if ((entry->sock = socket_tcp_listen(entry->ip, entry->port, sharing)) == -1) | 340 | if ((entry->sock = socket_tcp_listen(entry->ip, entry->port, sharing)) == -1) |
| 341 | panic("socket_tcp_listen"); | 341 | panic("socket_tcp_listen"); |
| 342 | socket_defer_accept((int)entry->sock); | ||
| 342 | } else { | 343 | } else { |
| 343 | if ((entry->sock = socket_udp_bind(entry->ip, entry->port, sharing)) == -1) | 344 | if ((entry->sock = socket_udp_bind(entry->ip, entry->port, sharing)) == -1) |
| 344 | panic("socket_udp_bind"); | 345 | panic("socket_udp_bind"); |
