mirror of https://github.com/rapiz1/rathole.git
chore: add a TODO
This commit is contained in:
parent
ed3b3a9831
commit
776bce35cb
|
@ -118,6 +118,7 @@ impl<'a, T: 'static + Transport> Server<'a, T> {
|
|||
if let Some(err) = err.downcast_ref::<io::Error>() {
|
||||
// If it is an IO error, then it's possibly an
|
||||
// EMFILE. So sleep for a while and retry
|
||||
// TODO: Only sleep for EMFILE, ENFILE, ENOMEM, ENOBUFS
|
||||
if let Some(d) = backoff.next_backoff() {
|
||||
error!("Failed to accept: {}. Retry in {:?}...", err, d);
|
||||
time::sleep(d).await;
|
||||
|
|
Loading…
Reference in New Issue