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

Henrik
31-Dec-2008
[3587]
I have to go for a bit...
Graham
31-Dec-2008
[3588x3]
Oops .. changed this group to non web public ...shouldn't have posted 
this is a web public group
No, it's okay with yours.  I'm guessing it only crashes on localhost.
phew!
Will
31-Dec-2008
[3591]
Graham, do you have any custom services? no problem here with that 
code:
  p: open/direct tcp://127.0.0.1:80 close p  
  p: open/direct tcp://127.0.0.1:80 close p
  p: open/direct tcp://127.0.0.1:80 close p
  p: open/direct tcp://127.0.0.1:80 close p
  p: open/direct tcp://127.0.0.1:80 close p
  read http://127.0.0.1:80                        
;   {<html>
<head>
^-<title>Welcome!</title>
</head>
<body>
<img src="logo.png">
<center>
<h2>Congratulations, you are running Cheye...
Graham
31-Dec-2008
[3592]
this is just the Cheyenne binary ... nothing else, and running on 
8002
Will
31-Dec-2008
[3593]
hmmm, I'm running from source
Graham
31-Dec-2008
[3594x3]
>> p: open/direct tcp://localhost:8002 close p p: open/direct tcp://localhost:8002 
print "ok"
close p
** Access Error: Cannot connect to localhost
** Near: p: open/direct tcp://localhost:8002 print "ok"
>>
the ok does not print because Cheyenne has quit
this though is fine


>> p: open/direct tcp://localhost:8002 print "ok" close p p: open/direct 
tcp://localhost:8002
print "ok" close p
ok
ok

so timing appears critical
Henrik
31-Dec-2008
[3597x2]
Graham, I have to check my console, because I think mine auto-restarts 
on quit.
seems there is nothing in consle
Graham
31-Dec-2008
[3599]
meaning?
Henrik
31-Dec-2008
[3600]
meaning it didn't quit
Graham
31-Dec-2008
[3601x3]
ok
well, reproducible on my system.
I guess we can make this group web-public again.
Will
31-Dec-2008
[3604x4]
keep it non public, there is a wiki on cheyenneserver.org for open 
web
btw Henrik and I are running it on osx
http://cheyenne-server.org/..
maybe someone is attaking you http://ftp.uni-kl.de/25C3/video_h264_720x576/25c3-2909-en-tcp_denial_of_service_vulnerabilities.mp4
8P
BrianH
31-Dec-2008
[3608x2]
Please let us know if there are any security vulnerabilities that 
pop up for Cheyenne, or REBOL network services for that matter.
I am about to use Cheyenne for a project that I have just found out 
will be more public than anticipated.,
Dockimbel
31-Dec-2008
[3610]
Graham: no problem here, testing with 0.9.18 binaries and 0.9.19 
source version, can't reproduce that crash (all tests done on port 
80). WinXP-Pro-SP3 here.
Graham
31-Dec-2008
[3611]
I'm on vista and using port 8002
Dockimbel
31-Dec-2008
[3612x2]
Do the Cheyenne processes disappear when your test fails? If not, 
did you try to access a web page to see if it's still responding?
try => tried
Graham
31-Dec-2008
[3614x3]
I'm watching the task manager ... all 3 cheynne processes quit
I think timing is critical for this bug to appear
ie. if I add a print between the open and close, the bug does not 
appear
Dockimbel
31-Dec-2008
[3617]
I'm trying here with the code you've posted (without the print), 
but can't reproduce.
Graham
31-Dec-2008
[3618x3]
Hang on ...
http://screencast.com/t/cPpSejdtYZ
watch the task manager
Dockimbel
31-Dec-2008
[3621x2]
Could you please try with the source version (v0.9.18) from here 
: http://cheyenne-server.org/dl/cheyenne-r0918.zip?
Btw, did you checked for a %crash.log file near cheyenne.exe?
Graham
31-Dec-2008
[3623x4]
ok. dl now
1-Jan-2009/9:16:46+13:00 : make object! [
    code: 305
    type: 'script
    id: 'invalid-arg
    arg1: true
    arg2: none
    arg3: none
    near: [set-modes new [no-delay: on]]
    where: 'init-connection
]
does that help?
forgot about crash.log
Dockimbel
31-Dec-2008
[3627]
Ah, interesting.
Graham
31-Dec-2008
[3628]
still want me to test with source?
Dockimbel
31-Dec-2008
[3629x2]
Yes, can you just comment the following line in %UniServe/uni-engine.r 
file :

	if new/scheme = 'tcp [set-modes new [no-delay: on]]

then try again your test.
Seems that Vista is more picky than XP about the usage of Nagle algorithm.
Graham
31-Dec-2008
[3631]
oops ...

>> do %cheyenne.r
Script: "Cheyenne Web Server" (19-Feb-2008)
** Script Error: NT-service? has no value
** Where: boot

** Near: if all [NT-service? not flag? 'service] [set-flag 'tray-only]
>>
Dockimbel
31-Dec-2008
[3632]
Did you applied some TCP networking tweaks on your Vista box to improve 
network latency?
Graham
31-Dec-2008
[3633x2]
nope
REBOL/View 2.7.6.3.1 14-Mar-2008
Copyright 2000-2008 REBOL Technologies.  All rights reserved.
REBOL is a trademark of REBOL Technologies. WWW.REBOL.COM
>> do %cheyenne.r
make object! [
    code: 303
    type: 'script
    id: 'expect-arg
    arg1: 'context
    arg2: 'blk
    arg3: [block!]
    near: [extension-class: context list]
    where: func [/local list][
        list: extract phases 2
        forall list [change list to-set-word list/1]
        repend list [to-set-word 'service none]
        extension-class: context list
    ]
]
>>
Dockimbel
31-Dec-2008
[3635]
Yes, old bug of 0.9.18 with REBOL 2.7.6.
BrianH
31-Dec-2008
[3636]
Doc, do you have a time planned for the public release of 0.9.19?