r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!Cheyenne] Discussions about the Cheyenne Web Server

Terry
14-Oct-2008
[3108]
Doc.. Im just thinking scalability / benchmarking.  I plan on spending 
my spare time over the next number of months building a next gen 
webserver using Cheyenne as the core, and I want to make sure I don't 
hit a game killer 3 months in.


i posted earlier in the Rockstar group how superior Cheyenne is compared 
to vhosts and .htaccess.. night and day.
Dockimbel
15-Oct-2008
[3109]
With R2, there's not much that can be done. The performances can 
be improved a little, that's all. You can still build clusters of 
Cheyenne server to sustain a higher load (obviously the front-end 
dispatcher would have to be done in C, there's several good ones 
in open source, or if you can afford, using an Alteon-like box). 
With a completed R3 (w/multithreading), Cheyenne could be a real 
competitor to Apache 2.
Terry
15-Oct-2008
[3110x2]
It is my personal belief that the HAL 9000 started life as a Cheyenne 
web server.
Yeah, you can round robin.. all sorts of options.. I think Apache 
handles 4000 concurrent connections?
Graham
16-Oct-2008
[3112x2]
Just a question about webapps... can we provide access to these also 
by basic authentication?
Suppose I implement the rest-mod, I want it be stateless so no cookies. 
 I want to pass the userid and password each time.  So, with no cookies, 
the user won't have access to the webapp.  So, does this mean I can't 
use a webapp with rest-mod?
Dockimbel
16-Oct-2008
[3114]
Basic auth: it's not built-in but can be added in your RSP script.
Graham
16-Oct-2008
[3115]
or in mod-rest ?
Dockimbel
16-Oct-2008
[3116x2]
right
If you're stateless, you don't need to use webapp (<=> session), 
simple RSP scripts would be enough, no ?
Graham
16-Oct-2008
[3118x5]
ok
yes, I think so.
just thinking thru the issues :)
included files can't contain RSP can they?
they're just processed as straight text ...
Dockimbel
16-Oct-2008
[3123x3]
no cookies => no access to webapps (unless you inject them in mod-rest...;-))
http://cheyenne-server.org/docs/rsp-api.html#def-21
you can include either RSP (will be executed) or static files.
Graham
16-Oct-2008
[3126x3]
oh ...
I'm sure I read somewhere that included files are just processed 
as text.  Must have changed?
mutualize => share
Dockimbel
16-Oct-2008
[3129]
More than a year ago.
Graham
16-Oct-2008
[3130x2]
not such word as mutualize
Ok .. I'm out of date!
Dockimbel
16-Oct-2008
[3132]
oh, thanks, fixing that.
Graham
16-Oct-2008
[3133]
and I need to re- RTM
Dockimbel
16-Oct-2008
[3134]
Fixed.
Graham
16-Oct-2008
[3135]
can I have an account on the wiki please
Dockimbel
16-Oct-2008
[3136]
sure
Graham
16-Oct-2008
[3137x4]
my email is good ...
value: request/posted

    returns a binary! value.
is incorrect I think
From memory, it returns a binary! or string! value
If it's a file saved to the web server as it's too large .. it's 
a string! holding the file name in %incoming/
Henrik
16-Oct-2008
[3141]
Are there any instances where Cheyenne would redirect back to the 
previous page if there was an error?
Graham
16-Oct-2008
[3142x2]
Your API reference is not part of the wiki .. I can't amend it! :(
Henrik  .. why would you want that?
Dockimbel
16-Oct-2008
[3144]
Main Menu / Using RSP ;-)
Henrik
16-Oct-2008
[3145x2]
Graham, I don't. Cheyenne is doing that right now on a new page I 
just created. The first version had a flaw that would not let it 
include a specific rebol include. Now I fixed it, but it keeps "bouncing 
away" from the page.
older rsp pages work fine
Graham
16-Oct-2008
[3147]
Henrik, is this an untrapped RSP error?
Dockimbel
16-Oct-2008
[3148]
request/posted : I'm not sure, looking at the source code...
Graham
16-Oct-2008
[3149]
either string! = type? request/posted)[
		; file name as large post
		f: trim/tail find/tail request/posted "incoming/"
		file: join %../incoming/ f

  write/binary to-rebol-file rejoin  ["faxes/" filename ] read/binary 
  file 
	][
		; binary content

  write/binary to-rebol-file rejoin  ["faxes/" filename ] request/posted
	]
Dockimbel
16-Oct-2008
[3150]
Henrik: never saw such kind of issue yet.
Henrik
16-Oct-2008
[3151x2]
Error 500
Access Error
Cannot open <my file here>
Near do %../../html.r
Where: protected-exec
http://rebol.hmkdesign.dk/site/pages/<-- try this page
Graham
16-Oct-2008
[3153x2]
Henrik, I've had some issues with relative paths and 'do ... in Cheyenne 
'do is a mezzainine with different bindings.
If you need to use 'do ... use *do
Henrik
16-Oct-2008
[3155]
Graham, possibly, but I use this method in about 20 other rsp pages 
without problems.
Graham
16-Oct-2008
[3156]
version ?
Dockimbel
16-Oct-2008
[3157]
From v0.9.19, using 'do would by default bind your loaded code to 
the webapp context (and not to the global context). Btw, if you're 
using an external INCLUDE function, it may clash with RSP's global 
INCLUDE function.