On 4/20/21 6:01 PM, Richard Gaskin via use-livecode wrote:
Postman shows a single reply to the client from Apache.

strace on the server shows each "put" implemented at the system level as a write to stdout.

So it looks to me like Apache buffers writes it receives and sends all of it to the client in one go, with a header that accurately accounts for the total size of multiple "put"s in the Content-Length.

I'm still curious to know how Apache knows when to send to the client - does it wait for the CGI to terminate?

But for now, at least it seems we have an answer to the question of whether LC Server or Apache buffers the writes.

Interesting. It's sounding like the stdout writes are being buffered until LC yields its process back to the system, and then Apache's process can pick things up again. But obviously I don't know.

--
 Mark Wieder
 ahsoftw...@gmail.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to