World: r3wp
[!Cheyenne] Discussions about the Cheyenne Web Server
older newer | first last |
ChristianE 27-Apr-2011 [10088] | Confirmed, I'm running cheyenne latest .exe on Win7 64bit w/o any problems, .dlls just load fine. |
Dockimbel 27-Apr-2011 [10089] | The "system" folder is searched in all cases: http://msdn.microsoft.com/en-us/library/ms682586, there is no way that a call to LoadLibrary( ) (== load/library) could miss kernel32.dll or other system DLL that Cheyenne relies on (unless the user system is seriously corrupted). |
GrahamC 27-Apr-2011 [10090] | Max, where's this web services plugin? |
Maxim 27-Apr-2011 [10091x3] | I'm at the client right now, doing last minute changes for his own uses. |
I'll be putting a demo server on-line probably later tonight. | |
as well as all sources and docs as a .zip which simply appens to the cheyenne folders. | |
GrahamC 27-Apr-2011 [10094] | so you running as a local service? |
Maxim 27-Apr-2011 [10095x2] | the default setup is set for localhost, but it can run online, just set it up in one of the vhosts you are serving. |
I didn't try running cheyenne as a windows service though, if that is what you meant. | |
GrahamC 27-Apr-2011 [10097] | No, I was asking the former .. if it's being used primarily as localhost |
Maxim 27-Apr-2011 [10098x3] | yes, right now, while testing, but there is no difference internally wrt using it on localhost or via vhost. |
the module handler is pretty fast, considering, we are using external code and user hooks to setup the process. calling this url on my meagre 1.5core2 duo http://localhost:81/echo.xml?value=tadam returns this xml <result status="success" method="echo" time-delta="0:00:00.000723302" phase="format-response"> <echo value="tadam"/> </result> | |
time delta is precise-timed using cpu frequency counters. | |
GrahamC 27-Apr-2011 [10101] | Seems very short time for an echo |
onetom 27-Apr-2011 [10102] | Maxim: the path notation works on file! valued variables too: >> f: join to-rebol-file get-env "HOME" %/system32 == %/Users/onetom/system32 >> f/some32.dll == %/Users/onetom/system32/some32.dll |
Maxim 27-Apr-2011 [10103x6] | that's true, I always forget :-) |
wrt api server speed adding up all the required cheyenne server handling and tcp xfer we get: >> s: chrono-time read http://localhost:81/echo.xml?value=tadam difference chrono-time s connecting to: localhost == 0:00:00.010442948 | |
how do I prevent the printing of "connecting to: localhost" when I read urls? ex: >> read http://localhost:81/ connecting to: localhost == 0:00:00.010442948 | |
sorry... question was meant for network group | |
is there a way for worker threads to change the req others than the content, in order to tell the mod that it should switch mime types? | |
I guess this is the only real way to pass messages back to the cheyenne server: within the mod... task-done: func [req][ load/all req/out/content ] | |
Dockimbel 28-Apr-2011 [10109] | Right, if you need to pass more than just the raw data to send back to the client, you need to build a custom data structure from your handler that you would decode in the mod receiving it. |
onetom 28-Apr-2011 [10110] | did anyone used single signon (kerberos) w cheyenne? |
Maxim 28-Apr-2011 [10111x2] | doc, in req/out I have both a value called mime: and mime-type: it seems that within mod phases, we are supposed to set mime: to a lit-path .... why is this so? wouldn't it be simpler to have just one and set it as a string directly, to be used in the header construction after? |
i.e, doesn't mime-type: suffice? | |
Dockimbel 28-Apr-2011 [10113] | There is no 'mime-type in the request object, only 'mime?? Maybe you were thinking about the 'set-mime-type callback? Lit-path: for historical reason, I wanted to be able to manage content-types using mime classes (text/*, image/*,application/*, ...), but I didn't use it so far. |
Maxim 28-Apr-2011 [10114] | oh... looked at it again... my bad... I'm returning mime-type: in my response and the probe was really confusingly showing it as if the mime-type: was in the same object as the req object. |
Maxim 29-Apr-2011 [10115] | for those who might be using dividers and don't look at all the groups, I posted the release of mod-web-api in the announce group, yesterday. |
Maxim 30-Apr-2011 [10116] | Graham, did you try the webservice mod? |
GrahamC 1-May-2011 [10117] | I am wondering if I can use this to control various applications I have running. They currently run with GUIs, but I think I should use a web service module to control them so that I can run them all GUI less. |
Maxim 1-May-2011 [10118] | well, you can still have a gui, but all it needs to do is build URLs and confirm the results :-) |
GrahamC 2-May-2011 [10119] | the web service would communicate internally via a tcp port ... so that should work. |
onetom 2-May-2011 [10120] | 2/5-19:59:12.259281-## Error in [conf-parser] : Error in conf file at: ! does this look familiar to anyone? there is no ! in the httpd.cfg of course |
Dockimbel 2-May-2011 [10121] | Never saw such error before. |
onetom 2-May-2011 [10122] | im trying to put an alias into a webapp. is it possible? |
Dockimbel 2-May-2011 [10123x4] | In theory, it should be possible, but never tested. I'm having a quick look at 'alias code atm... |
I don't see anything in the 'alias implementation preventing it to work from within a webapp. | |
Doing a quick test... | |
Works here. Here is my webapp config: webapp [ virtual-root "/testapp" root-dir %www/testapp/ auth "/testapp/login.rsp" alias "/testapp/hello" %testapp/login.rsp ] | |
onetom 2-May-2011 [10127x2] | hmm.. it doesn't throw an error if im trying to load a non-existant module |
how do u ignore .svn dirs while grepping an svn repo? it's annoying to say | grep -v \\.svn all the time | |
Dockimbel 2-May-2011 [10129] | Grepping: don't know. I would do a "svn export" of the SVN repository in such case. |
onetom 2-May-2011 [10130] | ah, it goes into the crashlog if a module is not found. im not sure how would it be the best but it's freaking hard to debug like this. 1, i won't know the names of the chey-pid-*.log files and there are multiple of them, so i can't easily tail -F them 2, trace and crash logs are created where the cheyenne executable or rebol source is located. -- that place usually not writable and it's somewhere else, not where the application is. 3, i won't know what is logged where unless i check all of these logs -- i could imagine a non-daemonizing mode where every fucking things is just dumped onto the stderr |
Dockimbel 2-May-2011 [10131] | i won't know the names of the chey-pid-*.log files As the -pid- part suggests, you just need to search for the one having the same PID as the current Cheyenne main process. |
onetom 2-May-2011 [10132x2] | i mean, i can't know it in advance. now im running cheyenne with -w 1 and having a look at the log with less *pid*log |
btw, that error at ! is logged even if my cfg file is only $ cat httpd.cfg modules [ internal extapp static action rsp alias ] globals [ listen [8080] bind-extern RSP to [ .r ] ] | |
Dockimbel 2-May-2011 [10134] | I wonder why you guys are make things harder by trying to debug your apps under production conditions? Why don't you make a local development setup using Cheyenne from sources, lauching it from a console in verbose mode to have a direct look at everything that could go wrong. The only log file I need to look at during Cheyenne development is %trace.log file (and even this one is accessible from your browser in RSP 'debug mode...). |
onetom 2-May-2011 [10135x3] | im writing a json webservice and actually it's very annoying when i get a RSP error html page, instead of the usual rebol error. |
what do u mean by production condition, btw? there is nothing in production yet | |
i have a global debug option just as a per-vhost one and im starting cheyenne w -vvv beside -w 1 | |
older newer | first last |