4 ms·
I'm not sure: isn't it faster to just refuse the request than directing it to localhost and waiting for a time out?
by huuu 11y ago
I'm not sure: isn't it faster to just refuse the request than directing it to localhost and waiting for a time out?
- JoachimSchipper 11y agolocalhost will RST the connection just fine, provided you don't have a webserver listening there.
- rocky1138 11y agoThat's the point. We'd like to see which is faster.
- jlgaddis 11y agoAs long as you don't have a firewall blocking traffic to/from localhost, the TCP connection will be reset almost immediately (assuming you don't have an httpd running on port 80) so you won't have to wait for a timeout.