We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a786762 commit eb254dcCopy full SHA for eb254dc
apps/src/bin/quiche-server.rs
@@ -188,13 +188,10 @@ fn main() {
188
false => clients.values().filter_map(|c| c.conn.timeout()).min(),
189
};
190
191
- let mut poll_res = poll.poll(&mut events, timeout);
192
- while let Err(e) = poll_res.as_ref() {
193
- if e.kind() == std::io::ErrorKind::Interrupted {
194
- trace!("mio poll() call failed, retrying: {e:?}");
195
- poll_res = poll.poll(&mut events, timeout);
196
- } else {
197
- panic!("mio poll() call failed fatally: {e:?}");
+ while let Err(e) = poll.poll(&mut events, timeout) {
+ match e.kind() {
+ std::io::ErrorKind::Interrupted => log::trace!("mio poll() call failed, retrying: {e:?}"),
+ _ => panic!("mio poll() call failed fatally: {e:?}"),
198
}
199
200
0 commit comments