… | |
… | |
125 | =item timeout => $fractional_seconds |
125 | =item timeout => $fractional_seconds |
126 | |
126 | |
127 | If non-zero, then this enables an "inactivity" timeout: whenever this many |
127 | If non-zero, then this enables an "inactivity" timeout: whenever this many |
128 | seconds pass without a successful read or write on the underlying file |
128 | seconds pass without a successful read or write on the underlying file |
129 | handle, the C<on_timeout> callback will be invoked (and if that one is |
129 | handle, the C<on_timeout> callback will be invoked (and if that one is |
130 | missing, an C<ETIMEDOUT> errror will be raised). |
130 | missing, an C<ETIMEDOUT> error will be raised). |
131 | |
131 | |
132 | Note that timeout processing is also active when you currently do not have |
132 | Note that timeout processing is also active when you currently do not have |
133 | any outstanding read or write requests: If you plan to keep the connection |
133 | any outstanding read or write requests: If you plan to keep the connection |
134 | idle then you should disable the timout temporarily or ignore the timeout |
134 | idle then you should disable the timout temporarily or ignore the timeout |
135 | in the C<on_timeout> callback. |
135 | in the C<on_timeout> callback. |