[FEATURE Request] Built-in server should support a thunk as body

2014-08-25 Thread Nala Ginrut
I'm trying to handle static file with our sendfile, but I realized it's impossible to call it in the handler of run-server. Although sanitize-response supports procedure as body, it never let me use sendfile at any chance, because the final writing operation should be delayed to server-impl-write.

Re: [FEATURE Request] Built-in server should support a thunk as body

2014-08-25 Thread David Thompson
Hi Nala, Nala Ginrut writes: > I'm trying to handle static file with our sendfile, but I realized it's > impossible to call it in the handler of run-server. > Although sanitize-response supports procedure as body, it never let me > use sendfile at any chance, because the final writing operation

Re: [FEATURE Request] Built-in server should support a thunk as body

2014-08-25 Thread Nala Ginrut
hi David! 2014年8月25日 下午8:16于 "David Thompson" 写道: > > Hi Nala, > > I'm currently writing a web application using Guile's built-in HTTP > server. To serve static files, I build a response like: > > (values `((content-type . (text/css))) > (call-with-input-file file-name get-bytevector-

Re: GNU Thunder

2014-08-25 Thread Ian Grant
Sorry about that. I have limited resources and am restricted to using free services. Here is a link to GitHub, I don't know if that is any better ... probably. GitHub seems far better organised than Google. https://github.com/IanANGrant/red-october/raw/master/thunder.pdf Ian On Sun, Aug 24

Re: GNU Thunder

2014-08-25 Thread Ian Grant
On Sun, Aug 24, 2014 at 12:07 AM, Richard Stallman wrote: > The research is all done. We just need to implement it. > > I would describe this as a domain for research, because it is > far from clear whether it could possibly work in practice; > if it could, it is not obvious how to make it w

GNU Phishing

2014-08-25 Thread Ian Grant
The following is probably the USAF report on Multics security that Thompson mentions in his "Reflections in Trusting Trust" talk. This has been known for forty years now. What do you reckon is the probability that it has been tried? What system/compiler would be the most likely target for such an

Re: [FEATURE Request] Built-in server should support a thunk as body

2014-08-25 Thread Nala Ginrut
I attached the patch here. The patch works for me. And I've tested it compared to the old way, say, read the content to memory then pass it as the body then send to the client. Please test this feature with bigger file (larger than 20MB), the small file is hard to show the difference. On average,

Re: [FEATURE Request] Built-in server should support a thunk as body

2014-08-25 Thread Nala Ginrut
On Tue, 2014-08-26 at 13:30 +0800, Nala Ginrut wrote: > I attached the patch here. > The patch works for me. And I've tested it compared to the old way, say, > read the content to memory then pass it as the body then send to the > client. > > Please test this feature with bigger file (larger than