Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plain mode with clear mode (no SSL) doesn't work? #99

Closed
remoe opened this issue Jul 4, 2013 · 2 comments
Closed

plain mode with clear mode (no SSL) doesn't work? #99

remoe opened this issue Jul 4, 2013 · 2 comments

Comments

@remoe
Copy link

remoe commented Jul 4, 2013

First, how it should work with a 'plain' sample:

Server:

cd examples/plain
node app.js

Client:

spdycat -nv -3 https://127.0.0.1:3232
[  0.007] NPN select next protocol: the remote server offers:
          * spdy/3
          * spdy/2
          * http/1.1
          * http/1.0
          NPN selected the protocol: spdy/3
[  0.016] Handshake complete
[  0.017] send SYN_STREAM frame <version=3, flags=1, length=217>
          (stream_id=1, assoc_stream_id=0, pri=3)
          :host: 127.0.0.1:3232
          :method: GET
          :path: /
          :scheme: https
          :version: HTTP/1.1
          accept: */*
          accept-encoding: gzip, deflate
          user-agent: spdylay/1.0.0
[  0.024] recv SETTINGS frame <version=3, flags=0, length=20>
          (niv=2)
          [4(1):100]
          [7(1):1048576]
[  0.063] recv SYN_REPLY frame <version=3, flags=0, length=36>
          (stream_id=1)
          :status: 200 OK
          :version: HTTP/1.1
          content-type: text/plain
[  0.063] recv DATA frame (stream_id=1, flags=0, length=13)
[  0.063] recv DATA frame (stream_id=1, flags=1, length=0)
[  0.063] send GOAWAY frame <version=3, flags=0, length=8>
          (last_good_stream_id=0)

Now, we change to clear mode:

var options = {
  plain: true,
  ssl: false,
...

and run it:

Server:

node app.js

Client:

 spdycat -nv -3 --no-tls https://127.0.0.1:3232

Then we have:

[  0.000] Handshake complete
[  0.001] send SYN_STREAM frame <version=3, flags=1, length=217>
          (stream_id=1, assoc_stream_id=0, pri=3)
          :host: 127.0.0.1:3232
          :method: GET
          :path: /
          :scheme: https
          :version: HTTP/1.1
          accept: */*
          accept-encoding: gzip, deflate
          user-agent: spdylay/1.0.0
[  0.027] recv SETTINGS frame <version=3, flags=0, length=20>
          (niv=2)
          [4(1):100]
          [7(1):1048576]
[  0.067] recv RST_STREAM frame <version=3, flags=0, length=8>
          (stream_id=1, status_code=3)
[  0.068] send GOAWAY frame <version=3, flags=0, length=8>
          (last_good_stream_id=0)

Thoughts?

@remoe
Copy link
Author

remoe commented Jul 5, 2013

@indutny , thanks. the 1.9.0 works.

@indutny
Copy link
Collaborator

indutny commented Jul 5, 2013

you're welcome, sorry forgot to write about it here :)

@indutny indutny closed this as completed Jul 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants