News for hackers. Stuff that matters.
Re:You can't download this image by kuroguro on Saturday November 27, 2021 @05:52AM (#29359207)
The problem with leaving connections open is that there's a limit on how many you can have on the server... I think the author has committed self-DoS :)

https://en.wikipedia.org/wiki/Slowloris_(computer_security)

Re:You can't download this image by tomxor on Saturday November 27, 2021 @07:15AM (#29359587)
> The connection has timed out

Now I really can't download the image

Re:You can't download this image by purplecats on Saturday November 27, 2021 @03:31PM (#29363085)
He got you!
Re:You can't download this image by kingcharles on Saturday November 27, 2021 @07:04PM (#29364872)
It's a win-win!
Re:You can't download this image by sildur on Saturday November 27, 2021 @06:19AM (#29359327)
And now you can't download that image.
Re:You can't download this image by Rerarom on Saturday November 27, 2021 @06:36AM (#29359394)
Yeah it's like a breeder reactor, it makes its own fuel.
Re:You can't download this image by garaetjjte on Saturday November 27, 2021 @07:48PM (#29365147)
It would be possible to really close the connection but hack something to don't inform the client. (maybe just doing close() with SO_LINGER=0 and dropping outgoing RST in iptables would be enough)
Re:You can't download this image by pipe01 on Monday November 29, 2021 @04:02AM (#29377710)
The client would eventually time out though, right?
Re:You can't download this image by garaetjjte on Monday November 29, 2021 @09:55PM (#29388380)
Yes, browsers probably have their own relatively short timeouts. (curiously enough, system TCP stack will never close idle connections by default, and even if application requests SO_KEEPALIVE, default intervals are usually in hours range)
Re:You can't download this image by titaniczero on Saturday November 27, 2021 @06:04AM (#29359246)
The website is down now lol
Re:You can't download this image by proyb2 on Saturday November 27, 2021 @06:21AM (#29359333)
It should be ends with .offline
Re:You can't download this image by ReactiveJelly on Saturday November 27, 2021 @06:08PM (#29364524)
Yep. Although with the right language, even on cheap hardware, that limit might be 1,000 or so.
Re:You can't download this image by danachow on Saturday November 27, 2021 @07:27PM (#29365016)
1000… pft.. just holding open a connection and sending on average a few bytes a second hardly costs anything and the memory requirements on eg Linux are minimal. You can easily do 100k or more with python and a few hundred megs of memory. Millions are doable with something a little less memory hungry or throwing more memory at it.
Re:You can't download this image by turing_complete on Saturday November 27, 2021 @07:47PM (#29365127)
Most programmers these days don't know what computers are capable of.
Re:You can't download this image by davidmurdoch on Saturday November 27, 2021 @07:51PM (#29365171)
if you aren't using 14 layers of abstraction you clearly aren't a real programmer /s
Re:You can't download this image by noir_lord on Saturday November 27, 2021 @10:19PM (#29365889)
In fairness to them, a lot of programmers didn't come up the way (we presumably) did - if you started using computers/programming in the 80's and building computers in the 90's your worldview is going to be fundamentally different to someone who started in 2018.

We came from a world where bytes mattered they come from a world where Gigabytes matter.

In some ways caring about that stuff can be detrimental, at the back of my mind there is always that little niggle - you could do this in 1/10th the runtime/memory cost but it'll take twice as long to write and you'll be the only one who understands it.

These days we don't optimise for the machine but instead for the human time and honestly, that's an acceptable trade off in many (but not all) cases.

It can be frustrating when you remember how much of an upgrade getting a 286 was over what you had, that I now routinely throw thousands of those (in equivalence) at a problem inefficiently and still get it done in under a second.