What exactly does "put" do on Server?
Mark Wieder
ahsoftware at sonic.net
Tue Apr 20 21:22:55 EDT 2021
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
ahsoftware at gmail.com
More information about the use-livecode
mailing list