World: r3wp
[!Cheyenne] Discussions about the Cheyenne Web Server
older newer | first last |
Henrik 6-May-2009 [4524] | Agree. |
Robert 6-May-2009 [4525] | Doc, agree too. It's a mess. And a time-killer if you start using Linux. Where can I find ABC etc. |
Dockimbel 6-May-2009 [4526] | I think to add on Unix, search paths for config file in the following order : local folder, $HOME, /etc/ . Would that be enough to cover all use cases? |
Henrik 6-May-2009 [4527] | fine by me |
Endo 7-May-2009 [4528x3] | I just tried to run cheyenne as a service on my WinXP Pro, it generates crash log and says "cannot-open service.dll" |
I used a file monitor and found the reason, it tries to load mcvcrt7.dll (visual c 7 runtime dll) can't find it and gives error with "can't open service.dll" | |
my os is xp pro sp3 so I suprised why mcvcrt7.dll is not there. anyway, if somone has the same problem just copy the dll to your system32 folder. | |
Dockimbel 7-May-2009 [4531] | Endo, thanks for your report. I'll check if mcvcrt7.dll is part of standard Windows installation. If not, I may switch to a statically compiled DLL. |
Janko 8-May-2009 [4532] | From Linux channel .. I will first have to make my webapp compatible with the latest version on local computer |
Maxim 8-May-2009 [4533x2] | doc, what is the easiest way to trap connections and take decisions based on the current context of the server? |
this is a real use case, not just a question in the air... I have to help a client with a problem they have. not a cheyenne bug, but the way its being used by their clients. | |
Dockimbel 8-May-2009 [4535] | I'm not sure what you mean precisely by "to trap connections" and also "current context of the server"? Are you talking about hacking the HTTP layer in Cheyenne? |
Maxim 8-May-2009 [4536] | I need to be able to verify a connection from a client right when it happens. so that I can refuse it based on some conditions and do some other client-internal stuff. |
Graham 8-May-2009 [4537] | Like IP address? |
Maxim 8-May-2009 [4538] | no, based on the current state of connections on the server. quantity of connections for example. |
Graham 8-May-2009 [4539] | http is stateles .. so what are you going to measure? |
Dockimbel 8-May-2009 [4540] | Max, that would require writing a specific module for Cheyenne. Connections number can be measured by doing a : length? system/ports/wait-list (and subtracting worker processes local connections). |
Maxim 8-May-2009 [4541] | how many connections are actively being served , time since they connected (to enable better timeout handling), etc. |
Dockimbel 8-May-2009 [4542] | Cheyenne network I/O layer (UniServe) tracks connections timestamps and manage timeouts automatically. |
Maxim 8-May-2009 [4543] | ok and is there a document which explains easily how to create and link a module at that level? |
Graham 8-May-2009 [4544] | and if users just let their connections timeout instead of logging out .... |
Dockimbel 8-May-2009 [4545x2] | You can find a short doc for Cheyenne's mods API in %Cheyenne/docs/developer-guide.html. |
If you want to manage connections by yourself, you need to dive deep into UniServe's engine to avoid conflicts with its own connections management rules. | |
Maxim 8-May-2009 [4547] | ok, is there anything documented on that side? or is it (what I expect) seek & destroy into the code itself? |
Dockimbel 8-May-2009 [4548] | There's a UniServe user documentation, but UniServe internals are not documented. |
Maxim 8-May-2009 [4549] | ok. thanks, you`ve already helped me save some time :-) |
Dockimbel 8-May-2009 [4550] | Maybe there's a more simple solution for what you want to achieve than hacking UniServe? I still don't get exactly what's your goal. Is it debugging? Is it adding a new feature to Cheyenne? |
shadwolf 8-May-2009 [4551] | explique lui en FR ca ira plus vite lol "bonsoir dock ca boum ?" |
Dockimbel 8-May-2009 [4552x3] | Sorry, this group is for discussion in english only which is the common language shared by all AltMe users. |
Max, not sure that it can help you, but you can open a live REBOL console connected to a running Cheyenne instance (only from localhost). You can then use the NETSTAT function to list all active connections in realtime. The client for connecting is : %UniServe/clients/rconsole.r | |
If you try that, just beware of a few things : - don't use QUIT or you'll close Cheyenne, just send a CTRL-C to exit the console session. - avoid probing things like UniServe's ports, they contains several circular references that, once molded, will produce huge amount of printed text and can hang on the server for several seconds (or minutes in the worst case). | |
Maxim 8-May-2009 [4555x2] | rconsole is cool, it will allow me to follow development from the outside. |
I mean follow if the changes are really doing what they should :-) | |
Dockimbel 8-May-2009 [4557x2] | I've use it a few times to hotpatch running Cheyenne instances. |
<used> | |
Janko 9-May-2009 [4559] | Hi, Doc .. is the latest binary not totally the same as sources? It seems it doesn't look into lib32 like it does if I run from sources |
Dockimbel 9-May-2009 [4560] | It should be the same. Did you applied the patch I gave you in Linux group on the sources? |
Janko 9-May-2009 [4561] | The source version worked without any patches already.. I can't apply them to binary version because I can't enpro it.. I am still not an owner of Rebol or SDK |
Dockimbel 9-May-2009 [4562] | I could encap a new version if you need, just let me know which encapper you prefer : enpro or enface? |
Janko 9-May-2009 [4563] | If I understand right enpro is without view and enface is not.. I would need the one without |
Dockimbel 9-May-2009 [4564] | That's right. Enface requires a few additional libs installed in order to work (like Xlib). |
Janko 9-May-2009 [4565] | I would be really gratefull if you could make new build :) |
Robert 11-May-2009 [4566x4] | DEBUG: I tried the debug-banner stuff but it doesn't work. |
** Script Error : debug-banner has no value ** Where: rsp-script ** Near: [debug-banner/active?: yes | |
Prefixing it with debug/ doesn't work as well. | |
Any idea? | |
Dockimbel 11-May-2009 [4570x2] | Tested here, same error as you. The word is declared inside an object and is not exported in global space. |
It looks like it's more complicated to activate the debug mode from within a RSP script than it seemed first. | |
Robert 11-May-2009 [4572x2] | Ok. I use the workaround that I'm logged into the server and use a "tail -f trace.log" to see what's happening. |
Works. | |
older newer | first last |