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, 11:41 am, Timothy Farrell <[email protected]> wrote:
> 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"<[email protected]> wrote:
>
> >> I get:
> >> ssl: None
> >> secure: False
>
> >> On May 3, 8:11 am, Timothy Farrell<[email protected]> 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,
> >>> you'll get a 400. If you're seeing this error, it means one or the
> >>> other is not what it should be. Please tell me which one.
>
> >>> Thanks,
> >>> -tim
>
> >>> On 5/3/2010 7:54 AM, Timothy Farrell wrote:
>
> >>>> 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.
>
> >>>> -tim
>
> >>>> On 5/2/2010 12:10 PM, Iceberg wrote:
>
> >>>>> Sorry, Cjrh, the tip doesn't help. To summarize:
>
> >>>>> 1) Bothhttp://localhost:8000andhttp://127.0.0.1:8000workwhenI
> >>>>> am using old rocket.py, and I just double confirm my hosts file
> >>>>> contains "127.0.0.1 localhost" since long long ago.
> >>>>> 2) Neitherhttp://localhost:8000norhttp://127.0.0.1:8000workswith
> >>>>> latest rocket.py
>
> >>>>> Actually I took a glance into the diff between latest two "rockets".
> >>>>> They look significantly different, but I could not trace down to
> >>>>> certain line yet. It is rocket science after all. :-)
>
> >>>>> Sos, Sos...
>
> >>>>> On May2日, 5:57am, mdipierro<[email protected]> wrote:
>
> >>>>>> @Iceberg, does the suggestion below fix the problem?
>
> >>>>>> @Tim. Does Rocket support IPV6 addresses?
>
> >>>>>> Massimo