Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] embedded welcomefiles+http2-push+gzip-static-content+rest-api configuration

btw, what would it take to follow along with the google PWA tutorial golang http2 server and recorgnize byte 0x16 is missing and kick a 302 out? 

as it stands, it looks like i have to run two completely unrelated jetty servers, one with a hardcoded 302 servlet on http and the http2 i'm chasing down now.


On Tue, Feb 19, 2019 at 7:14 PM James Northrup <jim@xxxxxxxxxxx> wrote:
 yes, I was aware of that, but at no point did i specify https to 8080.  i specified and got the result shown.  

without specifying httpsConnector.setPort(SSL_PORT) there simply was no connection on 8443 to the ephemeral port Jetty had chosen

i will repeat the test with the code, given the possibility that my chrome history jumped in from last week and forced itself on me, including nuke the service workers, and report back.   

On Tue, Feb 19, 2019 at 7:06 PM Simone Bordet <sbordet@xxxxxxxxxxx> wrote:

On Tue, Feb 19, 2019 at 7:20 AM James Northrup <jim@xxxxxxxxxxx> wrote:
> SslConnectionFactory sslConnectionFactory = new SslConnectionFactory(sslContextFactory, alpnConnectionFactory.getProtocol());
> ServerConnector httpsConnector = new ServerConnector(server, sslConnectionFactory, alpnConnectionFactory,http2ConnectionFactory, httpConnectionFactory);
> httpsConnector.setPort(SSL_PORT);
> becomes:
> (launcher code included below the log)

The logs show:

13:10:01.038 [qtp341878976-48] DEBUG
org.eclipse.jetty.server.HttpConnection -
13:10:01.039 [qtp341878976-27] DEBUG org.eclipse.jetty.http.HttpParser
- Illegal character CNTL=0x16 in state=START for buffer

The buffer contains a 0x16 0x03 sequence which is the start of a TLS
record, and you have sent the encrypted request to port 8080 (shown in
the first line).

You have sent an https request to the http port.

Simone Bordet
Developer advice, training, services and support
from the Jetty & CometD experts.
jetty-users mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top