You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a nonblocking tarpit. A tarpit is a way to slow down requests responses to stop bots from sending requests so frequently, it cannot consume extra capacity by sleeping.
The challenge here is to not close the sockets after they go out of scope in the epoll iteration loop. I need to figure out rust lifetimes to borrow them in the tarpit data structure until they are removed & responded to.
The drop fn that gets called at the end of the TcpStream lifetime calls close on the socket's file descriptor, so I need to use lifetime specifiers to prevent this.
The text was updated successfully, but these errors were encountered:
Add a nonblocking tarpit. A tarpit is a way to slow down requests responses to stop bots from sending requests so frequently, it cannot consume extra capacity by sleeping.
The challenge here is to not close the sockets after they go out of scope in the epoll iteration loop. I need to figure out rust lifetimes to borrow them in the
tarpit
data structure until they are removed & responded to.The
drop
fn that gets called at the end of the TcpStream lifetime callsclose
on the socket's file descriptor, so I need to use lifetime specifiers to prevent this.The text was updated successfully, but these errors were encountered: