[web2py] Re: Houston, Houston, the rocket lost contact!

2010-05-03 Thread mdipierro
new rocket launched to trunk. On May 3, 1:39 pm, Timothy Farrell wrote: > Negative.  The latter code is unrelated (though a similar style).   > However, I have changed it to be consistent in the patch I sent to > Massimo.  Look for it in an upcoming commit. > > -tim > > On 5/3/2010 1:33 PM, Jonat

Re: [web2py] Re: Houston, Houston, the rocket lost contact!

2010-05-03 Thread Timothy Farrell
Negative. The latter code is unrelated (though a similar style). However, I have changed it to be consistent in the patch I sent to Massimo. Look for it in an upcoming commit. -tim On 5/3/2010 1:33 PM, Jonathan Lundell wrote: On May 3, 2010, at 9:41 AM, Timothy Farrell wrote: So chan

Re: [web2py] Re: Houston, Houston, the rocket lost contact!

2010-05-03 Thread Jonathan Lundell
On May 3, 2010, at 9:41 AM, Timothy Farrell wrote: > So changing line 86 from ssl = None to ssl = False should take care of it. This pattern is repeated around line 130; that might be why mr freeze didn't see a change.

[web2py] Re: Houston, Houston, the rocket lost contact!

2010-05-03 Thread mdipierro
I'll wait for the patch. Massimo On May 3, 12:26 pm, Timothy Farrell wrote: > Good enough for me.  Let's call that the fix. > > --tim > > On 5/3/2010 12:02 PM, mr.freeze wrote: > > > No luck.  Changing it has no effect. The debug still prints: > > > ssl:  None > > secure:  False > > > If I chang

Re: [web2py] Re: Houston, Houston, the rocket lost contact!

2010-05-03 Thread Timothy Farrell
Good enough for me. Let's call that the fix. --tim On 5/3/2010 12:02 PM, mr.freeze wrote: No luck. Changing it has no effect. The debug still prints: ssl: None secure: False If I change at line 83 to: try: import ssl has_ssl = True except ImportError: has_ssl = False and l

[web2py] Re: Houston, Houston, the rocket lost contact!

2010-05-03 Thread mr.freeze
No luck. Changing it has no effect. The debug still prints: ssl: None secure: False If I change at line 83 to: try: import ssl has_ssl = True except ImportError: has_ssl = False and line 97 to: self.ssl = has_ssl and isinstance(self.socket, ssl.SSLSocket) it works. On May 3,

Re: [web2py] Re: Houston, Houston, the rocket lost contact!

2010-05-03 Thread Timothy Farrell
So changing line 86 from ssl = None to ssl = False should take care of it. -tim On 5/3/2010 10:58 AM, Iceberg wrote: I got same output as Nathan (Mr. Freeze). The ssl=None seems because my python2.5 on Windows contains no ssl module at all. On May3, 11:30pm, "mr.freeze" wrote: I get: ss

[web2py] Re: Houston, Houston, the rocket lost contact!

2010-05-03 Thread Iceberg
I got same output as Nathan (Mr. Freeze). The ssl=None seems because my python2.5 on Windows contains no ssl module at all. On May3, 11:30pm, "mr.freeze" wrote: > I get: > ssl:  None > secure:  False > > On May 3, 8:11 am, Timothy Farrell wrote: > > > > > To help me debug this, would one of you

[web2py] Re: Houston, Houston, the rocket lost contact!

2010-05-03 Thread mr.freeze
I get: ssl: None secure: False On May 3, 8:11 am, Timothy Farrell wrote: > To help me debug this, would one of you do the following: > > Add some code at line 99: > > print "ssl: ", self.ssl > print "secure: ", self.secure > > These two values should, in all cases be the same.  If they are not,

Re: [web2py] Re: Houston, Houston, the rocket lost contact!

2010-05-03 Thread Timothy Farrell
To help me debug this, would one of you do the following: Add some code at line 99: print "ssl: ", self.ssl print "secure: ", self.secure These two values should, in all cases be the same. If they are not, you'll get a 400. If you're seeing this error, it means one or the other is not what

Re: [web2py] Re: Houston, Houston, the rocket lost contact!

2010-05-03 Thread Timothy Farrell
The main change between the two versions is where it applies the SSL connection and adds a check to see if that connection isn't there when it should be. I've updated to the latest hg and I'm not seeing what you guys are seeing. Are any of you running HTTPS? Rocket does not support IPV6 yet.

[web2py] Re: Houston, Houston, the rocket lost contact!

2010-05-02 Thread Iceberg
Sorry, Cjrh, the tip doesn't help. To summarize: 1) Both http://localhost:8000 and http://127.0.0.1:8000 work when I am using old rocket.py, and I just double confirm my hosts file contains "127.0.0.1 localhost" since long long ago. 2) Neither http://localhost:8000 nor http://127.0.0.1:8000 works

[web2py] Re: Houston, Houston, the rocket lost contact!

2010-05-01 Thread mdipierro
@Iceberg, does the suggestion below fix the problem? @Tim. Does Rocket support IPV6 addresses? Massimo On May 1, 4:31 pm, cjrh wrote: > On May 1, 1:36 pm, Iceberg wrote: > > >         please visit: > >                http://127.0.0.1:8000 > > and > > > The console output is as usual. But we on

[web2py] Re: Houston, Houston, the rocket lost contact!

2010-05-01 Thread cjrh
On May 1, 1:36 pm, Iceberg wrote: >         please visit: >                http://127.0.0.1:8000 and > The console output is as usual. But we only get "400 Bad Request" > fromhttp://localhost:8000 http://mwolk.com/blog/localhost-not-working-but-127001-does/