← Back to context

Comment by toomim

3 years ago

Perhaps we should define a new HTTP header for servers to say: "It's ok for clients to initiate N connections with me" so that we can write web apps without this restriction.

...or we just keep moving to http/2 which avoids this limit.

  • That'd be great, but is a lot harder than adding a header. HTTP/2 changes the entire wire format into a binary protocol that multiplexes multiple streams over a single connection. It's a lot harder to implement than HTTP/1, which you can type out manually over telnet:

        telnet news.ycombinator.com 80
    
        GET / HTTP/1.1
        Host: news.ycombinator.com
        \n
        \n
    

    Adding a header could be as simple as:

        HTTP/1.1 200 OK
        Content-Type: text/html; charset=utf-8
        Multiple-Subscriptions: OK