@ska @astraleureka Chunking would be much better behavior.
Conversation
Notices
-
Embed this notice
Rich Felker (dalias@hachyderm.io)'s status on Tuesday, 25-Feb-2025 21:26:46 JST Rich Felker
-
Embed this notice
Rich Felker (dalias@hachyderm.io)'s status on Tuesday, 25-Feb-2025 21:55:15 JST Rich Felker
@jprjr @ska @astraleureka I would. 😁
-
Embed this notice
John Regan (jprjr@mastodon.social)'s status on Tuesday, 25-Feb-2025 21:55:16 JST John Regan
@dalias @ska @astraleureka one case where buffering the whole response and computing the content-length wouldn't work is Internet radio streams (icecast, shoutcast, etc). They just stream data forever.
Granted I'm not sure any folks out there are going to implement such streams as CGI/NPH scripts so, probably a moot point.
-
Embed this notice
Rich Felker (dalias@hachyderm.io)'s status on Tuesday, 25-Feb-2025 21:59:16 JST Rich Felker
@jprjr @ska @astraleureka I think best behavior would be chunking in some reasonable max unit size but also ending a chunk early if there's data buffered and no new data seen for a few hundred ms.
-
Embed this notice