diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-30 23:11:41 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-30 23:11:41 +0100 |
| commit | 15f9f81b5a8398fefca023e90d8d1c168ecef620 (patch) | |
| tree | 5661bcf9e01ea89784de285ae27312a1e752167d /ot_event.c | |
| parent | 36e396fd30bf098fa2459f11f4dd4430f7a8396e (diff) | |
Introduce a fast path assuming that a tcp connection's payload already has arrived at accept time
Diffstat (limited to 'ot_event.c')
| -rw-r--r-- | ot_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -171,7 +171,7 @@ static int event_change(int fd, int what, uint32_t generation, int deleting) { | |||
| 171 | return 0; | 171 | return 0; |
| 172 | } | 172 | } |
| 173 | 173 | ||
| 174 | int event_add(int fd, int what, uint32_t generation) { return event_change(fd, what, generation, 0); } | 174 | int event_add(int fd, int what, uint32_t generation) { return what ? event_change(fd, what, generation, 0) : 0; } |
| 175 | int event_modify(int fd, int what, uint32_t generation) { return event_change(fd, what, generation, 0); } | 175 | int event_modify(int fd, int what, uint32_t generation) { return event_change(fd, what, generation, 0); } |
| 176 | int event_del(int fd) { return event_change(fd, 0, 0, 1); } | 176 | int event_del(int fd) { return event_change(fd, 0, 0, 1); } |
| 177 | 177 | ||
