Discover Centmin Mod today
Register Now

Nginx NGINX + HTTP/2 + SPDY code

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by bassie, May 17, 2016.

  1. bassie

    bassie Active Member

    535
    116
    43
    Apr 29, 2016
    Ratings:
    +348
    Local Time:
    6:52 AM
    Cloudfare released there HTTP/2 + SPDY patch a few days ago.
    Interesting if you still need to use both SPDY and HTTP/2 or if you're interested in the way they use it.

    Downside is that Cloudflare still uses Nginx version 1.9.7 with a bunch of patches internally
    (see comments in this post) so it should only work with 1.9.7.

    "We've (Cloudflare) extracted our changes and they are available as a patch here.
    This patch should build cleanly against NGINX 1.9.7.

    The patch means that NGINX can be built with both --with-http_v2_module and --with-http_spdy_module.
    And it will accept both the spdy and http2 keywords to thelisten directive."
     
    • Informative Informative x 1
  2. eva2000

    eva2000 Administrator Staff Member

    30,163
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    2:52 PM
    Nginx 1.13.x
    MariaDB 5.5
    Nice.. SPDY has wider adoption than HTTP/2 HTTP/2 is here! Goodbye SPDY? Not quite yet

    latest numbers at Can I use... Support tables for HTML5, CSS3, etc with HTTP/2 closing in on SPDY

    upload_2016-5-18_0-28-9.png

    though that will change as Google Chrome is ending SPDY support along with NPN protocol support in Chrome 51 which is due May 31st, 2016 WebPerf - Google dropping SPDY in favor of HTTP 2 | Centmin Mod Community and these below 2 links

    so SPDY and NPN protocol have ~13 days of life left in them :)
     
    Last edited: May 18, 2016
  3. bassie

    bassie Active Member

    535
    116
    43
    Apr 29, 2016
    Ratings:
    +348
    Local Time:
    6:52 AM
    Completely agree, you kind of don't have a choise with the market use of Chrome,
    but there are legacy browsers on legacy systems who won't support HTTP/2 yet.
    Although Google is powerful with there Chrome, there is life after Google.
     
    • Agree Agree x 1
  4. bassie

    bassie Active Member

    535
    116
    43
    Apr 29, 2016
    Ratings:
    +348
    Local Time:
    6:52 AM
    Nginx 1.9.7. is kind of old with security related issues since 1.9.10.
    If you want to use SPDY and HTTP/2 you can back-port fixes and patch them into Nginx 1.9.7.
    Or use Alibaba's Tengine, rock solid Nginx 1.6.* with back-ported HTTP/2 and SPDY.
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,163
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    2:52 PM
    Nginx 1.13.x
    MariaDB 5.5
    probably not worth it given there's 10 days more life left in Chrome's SPDY support and other web browsers will follow suit - HTTP/2 all the way !
     
  6. bassie

    bassie Active Member

    535
    116
    43
    Apr 29, 2016
    Ratings:
    +348
    Local Time:
    6:52 AM
    Hhmm i still have a lot of legacy system visitors.
    There are several legacy systems and modern systems who don't support HTTP/2 yet or never will support it.
    (Windows 7, Windows 8 IE), Apple, Android with there default browser for example.
    The world won't end with Google, there is more then Google.
     
    Last edited: May 21, 2016
    • Agree Agree x 2
  7. bassie

    bassie Active Member

    535
    116
    43
    Apr 29, 2016
    Ratings:
    +348
    Local Time:
    6:52 AM
    Chrome 51 is rolling out right now.

    I'm curious how fast SPDY visitors will disappear.
    A quick search on the internet learned me, that there are still a lot of sites using SPDY, HTTP/2 only via NPN (because of OpenSSL <= 1.0.1 etc.) Time will tell.
    • To better align with Chrome's release cycle, SPDY and NPN support will be removed with the release of Chrome 51.
     
    Last edited: May 26, 2016