News for hackers. Stuff that matters.
Re:Announcing SPDY draft 2 implementation in nginx by seldo on Friday June 15, 2012 @01:23PM (#4117566)
This is a big deal, I think. Ten years from now we're going to look back and discover that Google quietly replaced HTTP without anybody complaining, or even noticing.
Re:Announcing SPDY draft 2 implementation in nginx by moonboots on Friday June 15, 2012 @01:32PM (#4117618)
I agree it's a big deal, but I wouldn't say people aren't noticing[1][2][3] or complaining[4].

  [1] http://tools.ietf.org/html/draft-montenegro-httpbis-speed-mobility-01
  [2] http://lists.w3.org/Archives/Public/ietf-http-wg/2012AprJun/0498
  [3] http://www.mnot.net/blog/2012/03/31/whats_next_for_http
  [4] http://librelist.com/browser//mongrel2/2011/8/17/opinions-about-spdy/#e67f0aaa71f4af3f0663195b99217f80
Re:Announcing SPDY draft 2 implementation in nginx by seldo on Friday June 15, 2012 @01:50PM (#4117726)
I was thinking more in terms of the average-joe consumer, but then I guess the average-joe consumer never knew what HTTP was anyway.
Re:Announcing SPDY draft 2 implementation in nginx by Danieru on Saturday June 16, 2012 @01:10AM (#4119922)
Sure they do, it is that thing in front of the hard to type portion of urls.
Re:Announcing SPDY draft 2 implementation in nginx by kristofferR on Friday June 15, 2012 @04:01PM (#4118404)
It won't replace HTTP 1.1, since billions of small sites without SSL certificates can't use it.

It might replace HTTP 1.1 if SSL certificates becomes free, automaticly generated, installed and renewed.

Otherwise most small websites (the majority of web sites on the net) without any real need for the security provided by encrypted communications (SSL) won't bother dealing with a ton of hassle (or costs) of SSL just for a minor speed improvement.

Re:Announcing SPDY draft 2 implementation in nginx by JoshTriplett on Friday June 15, 2012 @05:22PM (#4118782)
Free SSL certificates already exist, accepted by all major browsers: https://www.startssl.com/ . Does having to visit that site once a year to renew a certificate really pose a hardship?
Re:Announcing SPDY draft 2 implementation in nginx by eggnet on Friday June 15, 2012 @08:04PM (#4119359)
That, and having to have a dedicated ip address due to IE on XP's lack of SNI support.
Re:Announcing SPDY draft 2 implementation in nginx by JoshTriplett on Saturday June 16, 2012 @01:16AM (#4119930)
IE on XP will never support SPDY, so just fall back to HTTP for IE on XP. :)
Re:Announcing SPDY draft 2 implementation in nginx by eggnet on Saturday June 16, 2012 @08:21PM (#4121869)
But how do you do that? You'd have to have a non-https based landing page and then redirect to spdy based on user agent. If you actually care about SSL, the non-SSL landing page is an attack vector.
Re:Announcing SPDY draft 2 implementation in nginx by JoshTriplett on Saturday June 16, 2012 @11:17PM (#4122117)
You could serve up HSTS records via http, which IE on XP doesn't support either. That'll ensure that all of your repeat visitors use https directly.

Also, many sites still serve up their unauthenticated homepages via http only, and such sites should have no problem checking for IE on XP and providing a link that'll work.

Depending on the nature of your traffic and how it arrives (e.g. via integration with third-party sites via scripts you've written), you might also have the opportunity to provide the appropriate fallback links to users before they ever reach your site for the first time.

And all of the above assumes you have enough IE-on-XP users to not just write them off entirely.

Re:Announcing SPDY draft 2 implementation in nginx by thepumpkin1979 on Friday June 15, 2012 @02:10PM (#4117817)
I think adoption is driven by real needs and we need SPDY as much as we needed HTML5.
Re:Announcing SPDY draft 2 implementation in nginx by mtgx on Friday June 15, 2012 @01:56PM (#4117755)
The other article on SPDY complained about it having SSL enabled by default. Is that really something to complain about? Isn't it one of the good things about it, because if SPDY gets adopted, it means everything becomes encrypted? And isn't that a very desirable future?
Re:Announcing SPDY draft 2 implementation in nginx by e1ven on Friday June 15, 2012 @02:14PM (#4117835)
Having things encrypted is good, yes, but requiring people to get a certificate means that the web has fewer chokepoints, which is bad.

IMHO, SSL ought to use a fingerprint-comparison check, instead of a central cert. "This server has changed since last time. Is that OK?"

Re:Announcing SPDY draft 2 implementation in nginx by X-Istence on Friday June 15, 2012 @09:36PM (#4119599)
http://www.imperialviolet.org/2011/06/16/dnssecchrome.html

Using DNSSEC we can host the fingerprint of the cert in DNS at which point an CA is not required.

Re:Announcing SPDY draft 2 implementation in nginx by caf on Saturday June 16, 2012 @08:28AM (#4120486)
How is that a question that any end-user could be expected to answer with any kind of authority?
Re:Announcing SPDY draft 2 implementation in nginx by blaenk on Friday June 15, 2012 @05:41PM (#4118854)
What about the first time the user connects, how would they be assured that the fingerprint really is the site's and not a man in the middle?

Honest question, myself being pretty new to cryptography.

Re:Announcing SPDY draft 2 implementation in nginx by e1ven on Friday June 15, 2012 @05:44PM (#4118869)
In theory, you could do an out-of-band comparison.

In practice, you'd generally accept that the first one you receive is valid, and then watch for deviations from there.

This is the way SSH works, for instance.

Re:Announcing SPDY draft 2 implementation in nginx by chmod775 on Friday June 15, 2012 @08:59PM (#4119519)
Wait. Did I just read that right? They want to emulate a packet (or frame) based protocol on top of a stream protocol (TCP-Stream) which itself uses packets? That adds umm... how many overhead? Lets count:

- Data Link Layer (for instance Ethernet-Frames/Packets)

- IPv4/IPv6 - Packets

- TCP-Packets --> TCP-Stream

- SPDY-Frames --> Multiple Streams

- (Edit OK. Maybe not HTTP. Just insert here how they want to transmit the headers)

That way we not only send more useless data. We also have to dis- and reassemble everything twice.

Why not just extend the TCP-Protocol to support multiple streams? There's still unused space in the header and we have the possibility add additional options.

http://en.wikipedia.org/wiki/Transmission_Control_Protocol#T...

Am I missing something? I know that applications are not allowed to send raw TCP-Packets on most OSes by default. But most servers run Linux, which could be easily patched to support such additional features. (And webhosts will have some work to support that new protocol anyways)

I don't get it.

Edit: SCTP may be a suitable replacement for TCP as mentioned in some other comment. http://en.wikipedia.org/wiki/Stream_Control_Transmission_Pro...

Re:Announcing SPDY draft 2 implementation in nginx by X-Istence on Friday June 15, 2012 @09:43PM (#4119614)
SCTP requires OS support... putting SDPY on top of TCP/IP is just like any other protocol and doesn't require adding an entire new protocol that will have to be firewalled, will have to traverse across different devices that may or may not have SCTP available (such as older consumer routers).
Re:Announcing SPDY draft 2 implementation in nginx by NiekvdMaas on Friday June 15, 2012 @01:54PM (#4117749)
For everyone who tries to build this: the URL to the patch file is http://nginx.org/patches/spdy/patch.spdy-35.txt, and not the one mentioned in the announcement.
Re:Announcing SPDY draft 2 implementation in nginx by newman314 on Friday June 15, 2012 @02:12PM (#4117826)
It fails to build for me. Got a bunch of warnings being treated as errors.

gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g -march=native -Ofast -fomit-frame-pointer -fstack-protector -D_FORTIFY_SOURCE=2 -flto -fwhole-program -fuse-linker-plugin -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \ -o objs/src/http/ngx_http_spdy.o \ src/http/ngx_http_spdy.c

src/http/ngx_http_spdy.c: In function ‘ngx_http_init_spdy’:

src/http/ngx_http_spdy.c:261:34: error: variable ‘rc’ set but not used [-Werror=unused-but-set-variable]

src/http/ngx_http_spdy.c: In function ‘ngx_http_spdy_process_ping’:

src/http/ngx_http_spdy.c:1512:35: error: variable ‘c’ set but not used [-Werror=unused-but-set-variable]

src/http/ngx_http_spdy.c: In function ‘ngx_http_spdy_send_rst_stream’:

src/http/ngx_http_spdy.c:2552:35: error: variable ‘c’ set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors

I would point out that the -Werror is set by the vanilla version of nginx and not a flag that I passed in.

Re:Announcing SPDY draft 2 implementation in nginx by VBart on Friday June 15, 2012 @06:36PM (#4119069)
Thanks, fixed. =) Try again: http://nginx.org/patches/spdy/ patch.spdy-36.txt or later revision.
Re:Announcing SPDY draft 2 implementation in nginx by newman314 on Saturday June 16, 2012 @12:32AM (#4119874)
LOL.

Thanks for the quick turnaround. I got distracted with something else right after I posted this and didn't expect such a quick update.

In any case, -36 built just fine and I have verified that I now have SPDY on the server.

FWIW, the format of using

listen 443 spdy; ssl on;

works just fine too.

Re:Announcing SPDY draft 2 implementation in nginx by evmar on Friday June 15, 2012 @03:48PM (#4118344)
Warnings are compiler version dependent (and even optimization level dependent, surprisingly). It looks like that one was introduced by gcc 4.6, so perhaps the author of the patch was using a different version.

Chrome builds with -Werror on by default but, because of the above reason, recommends any person attempting to build it to turn it off (and provides a flag to do as much).

Re:Announcing SPDY draft 2 implementation in nginx by Ralith on Friday June 15, 2012 @03:01PM (#4118079)
I hope SCTP[1] starts to take off soon as a transport for protocols like this, so they don't have to keep working around the limitations of TCP.

[1] http://en.wikipedia.org/wiki/SCTP

Re:Announcing SPDY draft 2 implementation in nginx by gregr401 on Saturday June 16, 2012 @01:37AM (#4119966)
Date of the first RFC is from 2000. I wouldn't hold my breath. Besides, SPDY enablement simply relies on browser / middleware updates changes which can iterate quickly compared to networking gear that needs to support the protocol shift. This was a large factor in building SPDY on top of an existing stack.
Re:Announcing SPDY draft 2 implementation in nginx by Zash on Saturday June 16, 2012 @08:40AM (#4120504)
Look at how old IPv6 is, and how long it took to get people to start deploying.
Re:Announcing SPDY draft 2 implementation in nginx by subleq on Monday June 18, 2012 @02:25PM (#4127775)
It was much easier to get this working than I thought it would be! Does anyone know when this will be part of an official release?