tatsuhiro-t / spdylay

The experimental SPDY protocol version 2, 3 and 3.1 implementation in C
http://tatsuhiro-t.github.io/spdylay/
MIT License
603 stars 102 forks source link

what is the difference with spdy proxy mode and reverse proxy mode #73

Closed lingmingyb closed 10 years ago

lingmingyb commented 11 years ago

In my understanding they all translate spdy/https to plain http to the backend, no matter the back end is a proxy(squid) or a server. So what is the difference?

tatsuhiro-t commented 11 years ago

The only difference is that spdy proxy mode constructs absolute URI to request to the hop. In SPDY, :path is always path component of URI only. In order to forward the request to the HTTP proxy, we need to construct absolute URI using it, :host and :scheme.

lingmingyb commented 11 years ago

Another question is that can spdycat connect to shrpx , or it can only communicates with a spdy server? Is there any spec that describes how to negotiate a SPDY connection with a spdy proxy for clients?

Thank you

tatsuhiro-t commented 11 years ago

spdycat does not support SPDY proxy. So it can communicate to shrpx in reverse proxy mode, but not in spdy proxy mode. There are no proxy specific negotiation. It requires NPN to select SPDY version just like ordinary SPDY connections.