[REBOL] Re: webserver.r
From: chrismorency:videotron:ca at: 15-Jul-2001 1:04
Hi,
I contacted RT about this issue and I thought they would forward my feedback
to Cal, since I didn't know if Cal was still around (been busy on a rebol
project of my own, and haven't been reading the mailling list posts).
Anyway, here are the the issues regarding webserver.r and webserv.r posted
to RT feedback... the case related to your problem is in the second part
related to webserv.r
this was with version 0.9 of webserv.r if I remember correctly.
best,
Chris
REBOL Support
> webserver.r
> When the micro-web-server is running, you open a browser and enter the
address of the server, once you get the page, reload the page several time
by clicking on the reload button of the browser... but don't wait, click
really fast... now... it is suppose to crash... AFAIK here is the reason :
> excerpts from the code currently in the library :
> http-port: first wait listen-port
> clear buffer
> while [not empty? request: first http-port][
> repend buffer [request newline]
> ]
>
> now by repeating requests, the http-port has a request, but it is empty,
therefore when you do [ not empty? request: first http-port ], it crash
because the series is empty... hence cannot do first... but I may be
wrong... the not empty? only checks for request... but it has already crash
> webserv.r (contact Cal Dixon)
> default-type doesn't seem to be assign properly, so with browser like IE
5.5 the mime-type is not set properly and the browser ask to download the
html file instead of displaying it !!! adding the following in the
content-type list seems to do the trick but it's not consistent with the
default-type declaration which is then initiated for nothing :