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
30-May-2007
[675x5]
Looking good Nenad... the extension modules are the bee's kness.
What's the status of the PHP engine?
Nenad, there doesn't appear to be any session cookie being set after 
logging.. if that helps
In mod-rsp. the session timeout is set to 00:20  .. is that 20 seconds?
(or 20 mins?)
Dockimbel
30-May-2007
[680]
20 minutes
Pekr
30-May-2007
[681]
big timeout :-)
Graham
30-May-2007
[682x2]
what does that mean?
if there is no http activity from the user, they get logged out after 
20 mins if they try another http request?
Terry
30-May-2007
[684]
Nenad.. any chance of editing mods without restarting the daemon?
Dockimbel
30-May-2007
[685x2]
Right, user are logged out after 20 minutes of inactivity. You'll 
be able to define this timeout value per session (feature not yet 
implemented).
Terry, in theory, you can change anything in Cheyenne without restarting 
it through the RConsole service.
Graham
30-May-2007
[687]
Is it all working now?  No known showstoppers?
Dockimbel
30-May-2007
[688x2]
but mods have a special loader, so if you want to reload a changed 
module, you need to unload the previous one and do some internal 
cleanup in Cheyenne. This "unload and cleanup" part need to be implemented 
to be able to reload an active module. OTOH, loading a new module 
could be done right now without any issue (remains untested).
Graham: yes, RSP and Session support is fully working, but you should 
consider it beta state.
Terry
30-May-2007
[690]
unload is easy... its the cleaning up part ...  ;)
Dockimbel
30-May-2007
[691]
I didn't had much time to work on an internal API for live changes 
in Cheyenne, but, in theory, you should be able to reload the entire 
Cheyenne and Uniserve engine without restarting and without loosing 
opened connections.
Terry
30-May-2007
[692x2]
is the clients URL in the req/in/headers  ? tried printing the headers 
to the console, but chokes on the HOST?
oh really.. interesting
Dockimbel
30-May-2007
[694x2]
This kind of  "change in live" stuff is still experimental.
probe req/in instead
Terry
30-May-2007
[696]
um, which phase contains the clients ip address?
Dockimbel
30-May-2007
[697x4]
Phases are just stages in the request pipeline. If you need client 
IP, from one of the phase handlers (like url-translate, for example), 
it's in svc/client/remote-ip (svc/client point to the client port! 
value)
Terry, btw, i've just tested again /testapp/sixteen.html in FF and 
IE7 on different PC (XP sp1 and sp2), I can't reproduce the problem.
About PHP support, it works ok and out of the box with latest PHP 
binary on non-windows platforms. We tested it with phpMyAdmin and 
WordPress. It still not ready for production,  due to scalability 
issues. I need to improve and finalize my FastCGI protocol implementation 
to fix that.
Looking at the latest PHP windows binary 5.2.2, it seems that finally, 
they properly included the FastCGI support !! That's great news.
Oldes
30-May-2007
[701]
if the fastCGI mod in Chayenne is working you should add some comments 
here http://en.wikipedia.org/wiki/Fastcgi
Dockimbel
30-May-2007
[702]
Good idea, thanks for the link.
Maarten
30-May-2007
[703]
Graham: yes, RSP and Session support is fully working, but you should 
consider it beta state.

  - that's no problem, the mysql driver was beta quality for years 
  ;-)
Pekr
30-May-2007
[704]
... it was actually marked as beta, in fact it was 2.0 from the very 
beginning :-)
Maarten
30-May-2007
[705]
Or "Vista" depending on your company's quality standards ;-))))
Robert
30-May-2007
[706x2]
Any chance to integrate RebServices CGI mode in a way that keeps 
RS stuff running? So something like a fake CGI?
That would be killer environment.
Dockimbel
30-May-2007
[708]
Do you mean tunneling Rebservices through HTTP ?
MikeL
31-May-2007
[709]
Doc, When the Cheyenne version is released will it be announced here 
http://softinnov.org/cheyenne/blog.cgi?
Dockimbel
31-May-2007
[710]
Sure
Robert
1-Jun-2007
[711]
Doc, at the moment the best approach is to use RebServices via CGI 
(so that it can be used from behind firewalls & proxies). But CGI 
spawns a new process each time and RebServices isn't FastCGI aware 
at the moment.


Hence my idea, if we can tweak a bit and keep RebService running 
on the server but still use the CGI interface to access it. As Cheyenne 
is all Rebol code I thought it should be simple to integrate RebService 
either into Cheyenne or include a nice interface.
Terry
1-Jun-2007
[712x2]
Ok.. Doc.. trying to make a mod called my-mod


In the mod folder i create a file .. my-mod.r  that has this code. 

rebol []

install-HTTPd-extension [
	name: 'my-mod

	order: [
	url-translate first
	]
	
	url-translate: func [svc req conf][	
	probe svc/client/remote-ip
	print "test"
	]
]

I added my-mod.r to the %mods/ [ .... block in cheyenne.r
Doesn't fire?
Took out the print statement, added to the mod-rsp.r module, ... 
in that module i added url-translate first.. and works fine.
Is it not seeing my module?
Will
1-Jun-2007
[714x5]
Terry you need to put a none after print "test"
or a logic
the function need to return a value
if you need one more example, here the mod-rewrite:
http://reboot.ch/mod-rewrite.r
Terry
1-Jun-2007
[719x6]
ok.. made some changes...  renamed the module: mod-my-mod.r   .. 
added this to the http.conf file
Working fine now. (and the none after print "test" allows the print 
statement to work as well)
that was rather painless.
and well organized.
So I removed the module from cheyenne.r and it works.. I gather that's 
just for encapping?
Cheyenne is very extensible... shoud be easy to build http based 
file uploaders, advanced logging... db connections, advanced file 
mapping, authentication, mod-rewrites without the regexp.. tons of 
stuff.