diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2014-01-09 20:09:43 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-01-09 20:09:43 +0100 |
| commit | 3deabea8932715dae2b7b95e08b1be96d1bc0361 (patch) | |
| tree | ef0d8c3e758284d4ed40242f25ed09706fd2ffda | |
| parent | abaf9109bdacf9ec2f5c60eccb175a241fb70743 (diff) | |
| download | busybox-w32-3deabea8932715dae2b7b95e08b1be96d1bc0361.tar.gz busybox-w32-3deabea8932715dae2b7b95e08b1be96d1bc0361.tar.bz2 busybox-w32-3deabea8932715dae2b7b95e08b1be96d1bc0361.zip | |
fixlet for the previous commit #2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rw-r--r-- | networking/isrv.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/networking/isrv.h b/networking/isrv.h index d412973b7..7b12e0edd 100644 --- a/networking/isrv.h +++ b/networking/isrv.h | |||
| @@ -33,13 +33,12 @@ int isrv_register_peer(isrv_state_t *state, void *param); | |||
| 33 | * | 33 | * |
| 34 | * If listen_fd is active, accept new connection ("peer"), | 34 | * If listen_fd is active, accept new connection ("peer"), |
| 35 | * call new_peer() on it, and if it returns 0, | 35 | * call new_peer() on it, and if it returns 0, |
| 36 | * and add it to fds to select on. | 36 | * add it to fds to select on. |
| 37 | * Now, select will wait for <timeout>, not <linger_timeout> | 37 | * Now, select will wait for <timeout>, not <linger_timeout> |
| 38 | * (as long as we we have more than zero clients). | 38 | * (as long as we have more than zero peers). |
| 39 | * | 39 | * |
| 40 | * If a peer's fd is active, we call do_rd() on it if read | 40 | * If a peer's fd is active, we call do_rd() on it if read |
| 41 | * mask bit was set, | 41 | * bit was set, and then do_wr() if write bit was also set. |
| 42 | * and then do_wr() if write mask bit was also set. | ||
| 43 | * If either returns !0, peer is removed. | 42 | * If either returns !0, peer is removed. |
| 44 | * Reaching this place also resets timeout counter for this peer. | 43 | * Reaching this place also resets timeout counter for this peer. |
| 45 | * | 44 | * |
