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

Robert
24-May-2009
[4903x2]
I expected to have the same structure of CONTENT within my RSP page 
independent if I use POST or GET.
It looks like the JS lib toQueryString creates two differnt versions... 
I'm using mooTools. Very strange. Or is there a cause for this?
Graham
24-May-2009
[4905]
Is this a cheyenne issue?
Robert
24-May-2009
[4906x3]
Yes, I just checked the LOG files. My normal HTTP server gets:

[24/May/2009:06:01:36 -0500] "GET /rest-cart/payment?paymethod=ueberweisung 
HTTP/1.1" 200 56

Cheyenne gets:

127.0.0.1 - - [24/May/2009:12:58:33 +0200] "GET test.rsp?rest=payment?paymethod=ueberweisung 
HTTP/1.0" 200 56
So, it looks like everything from client to server, to cheyenne is 
passed correctly. And than inside the RSP page it's lost.
toQueryString: This was a false alarm, it's working correct.
Dockimbel
24-May-2009
[4909]
Are you using response/forward in your payment RSP script?
Robert
24-May-2009
[4910x3]
No, I load the answer HTML page and insert some HTML on the fly before 
returning the page via a PRINT.
That's why I'm really wondering what's happening...
Any other idea? Until this is solved I will use POST but GET would 
really  fit better.
Dockimbel
24-May-2009
[4913x2]
I've never encountered such issue. Can you reproduce it using the 
%show.rsp script? (you can find show.rsp in the source archive in 
%www/)
It looks like you've added a reformed query-string to a URL already 
having a query-string. Are you using request/query-string?
Maxim
24-May-2009
[4915]
how do I use rconsole to tell cheyenne to reload a mod that has changed 
on disk... 


or does cheyenne detect mod-file changes and reload them automatically?
Dockimbel
24-May-2009
[4916x2]
You can't. Mods are part of Cheyenne's kernel and the priority of 
each mod's callback is determined relatively to the other mods during 
Cheyenne boot (kind of competition for higher priority for each phase). 
Reloading a mod would required reloading all the mods, breaking most 
of the active connections (CGI, RSP, FastCGI,...). So the answer 
is : kill and reload Cheyenne.
<required> = require
Maxim
24-May-2009
[4918x2]
with your permission I would like to rebrand ssh-admin to  Cheyenne-admin.

its like a stand-alone cpanel for cheyenne-based systems.


All the current file and system commands options to manage the host 
server too will be complimented with any tools needed to configure 
and control cheyenne and any mods which are installed.
ok, so you build static blocks of callbacks, when loading the mods... 
I guess.
Dockimbel
24-May-2009
[4920]
Exactly.
Maxim
24-May-2009
[4921]
ok, so first cheyenne command in cheyenne-admin: "restart"  :-)
Dockimbel
24-May-2009
[4922]
I make a hash! list of all the phases' callbacks, so the impact on 
performances remains very low.
Maxim
24-May-2009
[4923x2]
:-)
so is the branding of cheyenne-admin ok with you?
Dockimbel
24-May-2009
[4925]
Go on for the name, my own Cheyenne admin panel is still at a very 
early stage.
Maxim
24-May-2009
[4926]
mine is already capable of all the file browsing/upload/download 
to the server  :-)
BrianH
24-May-2009
[4927]
Link? :)
Maxim
24-May-2009
[4928x5]
hehehe, will be providing the link to my site once its on-line, and 
then will start working on revault, for which I also purchased domains.
I am using this site as a showcase for all of my work.  including 
web, visual arts, music, design, programming, etc.
I have soooo much stuff on my disk which is just screaming to be 
released!
cheyenne-admin also has a *VERY* nice GUI, using GLayout.
already using cheyenne-admin to setup my bash user config files (~/.xxxx 
files) copying files locally, editing in ultra-edit, and uploading 
them back  
all via one click for xfer   :-)
I'm lazy  hehehehe
Graham
24-May-2009
[4933]
what do you use the admin for ?
Maxim
24-May-2009
[4934]
Note this is a linux server-side only tool (currently).
currently:
	-remote browing of files in a gui.
	-uploading/downloading any files to/from the webserver
	-running command-lines remotely
soon: 
	-chmoding remote files
	-handling webserver start/stop/restart  remotely.
	-more as time goes by.
Graham
24-May-2009
[4935x2]
so you run the tool on the server PC?
ie. you can't run it from a client PC?
Maxim
24-May-2009
[4937x4]
nope locally.
I meant the server has to be a linux box.
anyone know if there is a detailed doc on sessions within cheyenne?
what we need with !cheyenne are minial examples of services and mods 
which implement all callbacks and give just a small comment on why 
and when it is called... this would help soo much in understanding 
how to implement cheyenne extensions.


I am currently looking at the rsp code and its so huge and complex 
that its a big daunting to grasp the whole by looking at its parts.
Dockimbel
25-May-2009
[4941]
Mod-RSP is the most complex one and it does a lot of things. Sessions 
in Cheyenne are RSP-specific. There's a synchronization system in 
RSP sessions for protection of session data from corruption in concurrent 
executions. That may be easy to understand by just reading the code. 
Anyway, feel free to ask for explanations of specific code parts.
Maxim
25-May-2009
[4942x5]
yep it is complex hehe
you mean that if two requests are sent to different task-handlers 
they will resync when the later is done?
or is it rather some kind of semaphore?
there are too few comments (read as almost none ;-) in your code, 
 and that doesn't slow down server in any way   ;-D
I mean... more comments wouldn't slow down the server hehehe
Dockimbel
25-May-2009
[4947x3]
Sorry: that may be easy = that may not be easy
It works using a semaphore (session/busy?: yes|no). It used to be 
very fined-grained with distinction of RSP scripts just reading session 
data from scripts modifying session data, but it was even more complex 
to maintain and the RSP source static analysis I was doing could 
never be 100% accurate (it''s easy to bypass any form of static analysis 
in R2). So now, it just blocks concurrency inside a user session 
(only 1 RSP script per user session allowed).
Session data is passed to task-handlers along with each request and 
saved back in main process on task-handlers response.
Maxim
25-May-2009
[4950x2]
so an rsp script cannot call another rsp script within its links 
for images, for example?
well, actually it can... its just not going to download concurrently.
Dockimbel
25-May-2009
[4952]
Yes it can, from the server perspective, it's just a sequence of 
RSP requests.