spdy

Detect browser if capable/enabled for http2 via javascript or php

懵懂的女人 提交于 2020-01-07 06:25:27
问题 I've checked on similar questions and found two options I can proceed with, however both have problematic issues. if ( performance && performance.timing.nextHopProtocol ) { console.log('Protocol:' + performance.timing.nextHopProtocol); } else if ( window.chrome && window.chrome.loadTimes ) { console.log('Protocol:' + window.chrome.loadTimes().connectionInfo); } else { console.log("Browser does not expose connection protocol"); } The above code does return the protocol however, while using my

Chrome 54 doesn't get HTTPS response from my site; Chrome 53, Chromium, Firefox, and Safari do

懵懂的女人 提交于 2020-01-04 05:33:13
问题 As of about a week ago, my website was working fine. Since Chrome version 54, I can't get it to load. The HTTPS request doesn't get any response and shows a status of "(canceled)". It loads just fine in Chromium, Firefox, Safari, and even Chrome 53. Chrome's developer tools don't give any helpful information - see the image. Here is what it looks like in Chromium: (You'll note that the second image shows the subdomain www. That's because, when the naked domain loads properly, it redirects to

SPDY - without TLS?

☆樱花仙子☆ 提交于 2020-01-02 01:38:23
问题 I'm trying to implement SPDY (with Node.js) for use on a high latency connection. Now SPDY uses TLS encryption and this would increase the packet length - something I'm trying to avoid. Is there such thing as a SPDY implementation without the TLS encryption? Many thanks in advance, 回答1: SPDY's framing layer does not need to run over TLS, but for deployment reasons, it almost always does. It's hard to reliably deploy without running encrypted over port 443, because of intermediaries. Note the

What is the best and current way to move to HTTPS on a large website?

时间秒杀一切 提交于 2019-12-25 03:37:34
问题 From watching HTTPS everywhere on YouTube they suggest that HTTPS and SPDY combined will be quicker than just serving web pages/assets over HTTP but then since reading SPDY is Dead. Long Live HTTP/2 and what with with HTTP2 support being a way off I am in two minds as to whether to move a large site I'm working on to HTTPS entirely as ultimately it will be slower since doing perf comparison tests (the DOM content loaded took twice the time to load). I also just read somewhere that browsers

HTTP2 / SPDY Push-Stream Verification: How to Test?

半城伤御伤魂 提交于 2019-12-24 13:40:24
问题 I am implementing HTTP2/SPDY push resourcing using the node module spdy. I have followed indutny's doc and have been doing test runs implementing his example into my server.js. The problem is two fold; I am not getting any errors in the log(s) nor am I seeing the alert in the browser. I don't see any change in the Developers Console as well. If I set a bogus push URL, I get no response/errors,etc. I believe in theory, the Priority should change from medium to High (?). See Screen shoot. Is

How to run Jetty with SPDY on JDK8?

▼魔方 西西 提交于 2019-12-12 18:32:57
问题 For a few days we have JDK8. I have tried to run Jetty with SPDY server. In JDK8 there is no NPN support so it ends with: [qtp22068985-16-selector-ServerConnectorManager@12e7b0e/1] WARN org.eclipse.jetty.io.SelectorManager - Exception while notifying connection SslConnection@e1448a{NEED_UNWRAP,eio=-1/-1,di=-1} -> NPNServerConnection@382d40{IDLE} java.lang.NoSuchMethodError: sun.security.ssl.HandshakeHash.<init>(ZZLjava/util/Set;)V at sun.security.ssl.Handshaker.activate(Handshaker.java:493) I

zLib inflate() hangs while uncompressing buffer

放肆的年华 提交于 2019-12-12 01:27:57
问题 I use zLib 1.2.7, taken from here. I have compiled it in Microsoft Visual Studio 2010 as a static library and added it to my project. I need to decompress some binary data compressed with deflate algorithm. Here it is: unsigned char rawData[114] = { 0x00, 0x00, 0x00, 0x00, 0x15, 0x82, 0x05, 0x9D, 0x62, 0x91, 0x9A, 0x86, 0x26, 0xF3, 0x45, 0xBF, 0xE1, 0x69, 0x19, 0xA8, 0x80, 0x21, 0x08, 0x43, 0xF1, 0xEF, 0xCC, 0x01, 0x68, 0x4E, 0x3C, 0x06, 0x59, 0x6D, 0x90, 0xB2, 0x1F, 0xC3, 0x87, 0xC2, 0xBF,

How to work with client certificates on Jetty SPDY with ALPN?

馋奶兔 提交于 2019-12-11 17:12:42
问题 I have problem with client certifiacates when I use SPDY with Jetty. It works when I work with NPN and start Jetty SPDY server with: SSLconnector = new HTTPSPDYServerConnector(server, sslContextFactory); As a baseRequest.getHttpChannel() it uses org.eclipse.jetty.spdy.server.http.HttpChannelOverSPDY and I can read SSL properties like SSL_SESSION_ID and client certificates with code like: // ... HttpServletRequest request java.security.cert.X509Certificate client_certs[] = (java.security.cert

Configure SPDY on tomcat 8 windows

亡梦爱人 提交于 2019-12-11 13:39:45
问题 I'm developing a web application with eclipse and tomcat 8 in windows, now i want to setup SPDY. I must use apache tomcat 8, this is a constraint project. How can I configure my web application to use SPDY in tomcat 8? 回答1: UPDATE: i wrote a mail to apache users mailing list and they gave me this reply: SPDY support was experimental and for a much older version of SPDY than any current browser supports. Tomcat's SPDY support is not usable in its current form. HTTP/2 support will be available

HTTP2 Push- placing script tags in res.end

有些话、适合烂在心里 提交于 2019-12-11 05:42:59
问题 After reading HTTP2 Article using Speedy NPM module, I have a question. The benefit of HTTP2 push is that the browser has the resources cached before the browser requests them. In this example: spdy.createServer(options, function(req, res) { // push JavaScript asset (/main.js) to the client res.push('/main.js', {'content-type': 'application/javascript'}, function(err, stream) { stream.end('alert("hello from push stream!")'); }); // write main response body and terminate stream res.end('Hello