Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SPDY in Phoenix

I know that Cowboy is capable of handling SPDY protocol (not HTTP2, though). However, looking into Phoenix framework source code, I only see http and https calls. Is SPDY ignored? It's pity to have my Elixir/Phoenix site serves pages slower than its old Rails incarnation just because Apache/Passenger used SPDY and Phoenix doesn't.

The only reference to SPDY in the codebase seems to be https://github.com/phoenixframework/phoenix/blob/5fc7eb829338dca3efd4a4d8f79f9e928d1bc34c/test/phoenix/socket_test.exs

Should I try to fork Phoenix and see how to add proper Cowboy call myself or am I missing something obvious?

like image 434
Damir Bulic Avatar asked Jan 26 '16 14:01

Damir Bulic


1 Answers

Old topic, but Cowboy 2.0 supports HTTP/2

And here some early attempts for The Cowboy 2 adapter for Phoenix

https://github.com/VoiceLayer/phoenix_cowboy2

and example app with http/2 support

https://github.com/voicelayer/phoenix_cowboy2_example

like image 69
Pawel Wodzicki Avatar answered Sep 18 '22 15:09

Pawel Wodzicki