guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guile web server example serving static files


From: Zelphir Kaltstahl
Subject: Re: Guile web server example serving static files
Date: Sat, 19 Sep 2020 12:57:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Icedove/68.10.0

Hello Arne!

Thanks for the link. So far I have only tried with a tiny CSS file, so I
have no idea, whether I would run into a problem, besides memory
consumption, for big files. I wonder, whether I should simply use
sendfile described in
https://www.gnu.org/software/guile/manual/html_node/File-System.html#File-System.
I think it was mentioned to be in GUIX somewhere, as an example. So far
I did not get to look at it.

Regard,
Zelphir

On 18.09.20 09:47, Dr. Arne Babenhauserheide wrote:
> Hi Zelphir,
>
> I see that you’re getting the full file as bytevector 
>
> Zelphir Kaltstahl <zelphirkaltstahl@posteo.de> writes:
>> https://notabug.org/ZelphirKaltstahl/guile-examples/src/65ba7cead2983f1ceb8aa2d4eedfe37734e5ca56/web-development/example-03-serve-static-assets
> I see that you’re getting the full file as bytevector in response-utils.
> When I tested this in wispserve with multi-gigabyte files, I got
> gc-errors.
>
> I do string-conversion, though, because I got into problems with just
> putting a bytevector — does avoiding that avoid the problem?
>
> https://hg.sr.ht/~arnebab/wispserve/browse/wispserve/serve.w?rev=4541f36df0b0#L411
>
> Best wishes,
> Arne

-- 
repositories: https://notabug.org/ZelphirKaltstahl





reply via email to

[Prev in Thread] Current Thread [Next in Thread]