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
3-Jun-2007
[1038]
but if phases are in order, why not follow the order?
Dockimbel
3-Jun-2007
[1039]
exactly, modules are competing to close each phases, so order in 
the list, and order in config file matter.
Terry
3-Jun-2007
[1040]
I can see how that could be a bit tricky.. somewhat bug prone
Dockimbel
3-Jun-2007
[1041x2]
if 2 modules declare the same phase's function to be first, which 
one to call ? :-)
this case is solve only by the position in config file.
Terry
3-Jun-2007
[1043x3]
Need some kind of global phase viewer
(sounds like a module :)
normal then is pure config order
Dockimbel
3-Jun-2007
[1046]
This system is very flexible, but if not carefully done, can lead 
to a messy organization. I plan to move to a more simplified system 
(but more restricted too) for Cheyenne 2.0 (not before 2008, I guess).
Terry
3-Jun-2007
[1047x2]
This is fine.  just need to grok the system better.
That helps alot, thanks
Dockimbel
3-Jun-2007
[1049x3]
Graham: still no crash on your server
true
(sorry, wrong channel)
Graham
3-Jun-2007
[1052x2]
I reduced the number of javascript elements on the page.
I'll put them back and see if it happens again.
Terry
3-Jun-2007
[1054x2]
One last question for now if you don't mind.. sending a response 
back to the page.. .. is this correct?
req/out/content: "test"
Do you have a really basic make-response function?
Dockimbel
3-Jun-2007
[1056]
yes, but you have to set the res/out/code (HTTP response code as 
integer! value)
Terry
3-Jun-2007
[1057]
Here's what I have.. 
install-HTTPd-extension [
	name: 'mymodule

	order: [
	url-translate first
	make-response first
	]
	
	url-translate: func [svc req conf][	
	;probe svc/client/remote-ip
	none
	]
	
	 make-response: func [svc req conf /local res sess][
		if all [declined? req none? req/app][return none]	
	req/out/content: "test"
return true	
		 
	]
	
]
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?