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

Dockimbel
3-Jun-2007
[1058x3]
req/out/code
lacks : req/out/code: 200
and delete the : if all.. line
Terry
3-Jun-2007
[1061]
Eureka!
Dockimbel
3-Jun-2007
[1062]
this line is for testing in mode-rsp/make-response if the request 
should be processed by mod-rsp or not.
Terry
3-Jun-2007
[1063]
That should be Rebol's new name ;)
Dockimbel
3-Jun-2007
[1064]
Agreed ;-)
Terry
3-Jun-2007
[1065]
That's great..   so very extensible.. I have a really basic core 
Chyenne, and can add mods as I go..
Graham
3-Jun-2007
[1066x2]
Well, I guess it's good as it's not crashing now.
I wonder if it was because I had some paths wrong to the javascript 
libraries ...?
Terry
3-Jun-2007
[1068]
Trimming out the extra modules really sped things up.. doing 1000 
localhost page hits in < 9 secs
Graham
3-Jun-2007
[1069]
Would that kill the rsp engine if it tried to include non existent 
libraries?
Dockimbel
3-Jun-2007
[1070x3]
Cannot make it crash whatever I do...Anyway, if you can reproduce 
the problem, I'd like to know what caused your error.
humm, good question :-)
might be the cause, let me try that
Graham
3-Jun-2007
[1073x3]
I originally had relative paths .. but the Yahoo libraries were above 
the webroot
so, I switched then to using absolute paths to Yahoo itself
I wasn't sure if rsp would allow me to include outside the webroot
Dockimbel
3-Jun-2007
[1076]
currently, there's no restriction on that, but I have to sandbox 
those include functions.
Graham
3-Jun-2007
[1077]
Hmm  ..that's not correct.
Terry
3-Jun-2007
[1078]
Oops.. that was < 9 secs with vv debugging on.. turned off it was 
< 4 secs
Graham
3-Jun-2007
[1079]
rsp would include the file correctly, but the generated page would 
reference libraries outside the webroot
Dockimbel
3-Jun-2007
[1080]
Tested here, seems ok, I got an RSP catched error telling me that 
the file is not found.
Graham
3-Jun-2007
[1081]
I'll play some more and see if I can reproduce .. though I would 
prefer not to see more errors :)
Terry
3-Jun-2007
[1082x2]
Ran 3 scripts concurrently doing 5000 page reads each  .. all 3 finished 
around 33 secs.
Any idea on concurrent user limits?
Dockimbel
3-Jun-2007
[1084x3]
I've done some stress test on a previous version of Cheyenne, it 
was sustaining around 500 concurrent connections on static pages 
requests. (RSP have a limitation of  <500 due to a design bug in 
task-master. This bug will be fixed in a few days).
I need to do more stress tests on that to publish officialy Cheyenne's 
performances.
Btw, the testing tool was written in REBOL, it may have some bugs. 
I'll do more serious testing using third-party stress test tools.
Robert
3-Jun-2007
[1087]
sessions: Is it possible to add a cookie-free session handling by 
adding a session ID to the URLs?
Graham
3-Jun-2007
[1088x3]
I like the way I can omit many print statements by escaping out of 
the rsp as follows

<%

 qry: rejoin ["select age, diagnosis from diagnoses where patient 
 = " session/content/uid ]
	sql: do-sql 'remr qry
	if not empty? sql [
		%> <table border=1><tr><th>Age</th><th>Diagnosis</th></tr> <%
		foreach record sql [

   %> <tr><td> <% prin record/1 %> </td><td> <% prin record/2 %> </td> 
   </tr> <%
			response/flush
		] 
		%>
		</table> <%
	]
%>
Robert, you can still track the sessionid
or, does that need cookies???
Robert
3-Jun-2007
[1091x2]
Not that I know about. But I have to do it myself, right?
Or is there an option for RSP to use cookie or session-id?
Graham
3-Jun-2007
[1093x2]
try turning off cookies and see if the session id is preserved
I would guess not
Dockimbel
3-Jun-2007
[1095x3]
Graham: instead of writing <% prin record/1 %>, you can use the following 
syntax : <%= record/1 %>
Session currently only use cookies. The session ID is available (session/id) 
so you could embed it in urls, but session cookies support is hardwired 
in the RSP engine, so it would require a lot of internal changes 
to not rely on cookies.
Btw, why would you pass session ID through URLs instead of cookies 
? Is it for users that wrongly feel more secure by not accepting 
any cookie ?
Graham
3-Jun-2007
[1098]
<%= - nice ... that'll save a bit of typing :)
Chris
3-Jun-2007
[1099]
Note: so long as QM is server neutral (i.e. it's Apache friendly), 
it will not be as efficient as it could be under Cheyenne.  I really 
would like to do a Cheyenne-only version, but not until QM is feature 
complete (and I will say 'stop' as some point :)
Will
3-Jun-2007
[1100]
don't loose your time with apache.. 8-)
Chris
3-Jun-2007
[1101]
Unfortunately it's a requirement :(
BrianH
3-Jun-2007
[1102]
How does Cheyenne's performance and security stack up against the 
other indians (Apache, Cherrokee, Hiawatha, ...)?
Chris
3-Jun-2007
[1103]
Most of QM is just establishing the core functions and protocols. 
 I could just sweep them away if they were preloaded.
Robert
3-Jun-2007
[1104]
Doc, exactly. A lot of companies don't allow cookies for their employees...
Pekr
3-Jun-2007
[1105]
I would fire IT person who has anything against cookies ...
BrianH
3-Jun-2007
[1106x2]
Any decent antispyware program will delete the worst ones - the rest 
should be OK.
Of course that is on Windows.