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 <[email protected]> wrote: > yes, I was aware of that, but at no point did i specify https to 8080. i > specified https://0.0.0.0:8443 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 <[email protected]> wrote: > >> Hi, >> >> On Tue, Feb 19, 2019 at 7:20 AM James Northrup <[email protected]> wrote: >> > SslConnectionFactory sslConnectionFactory = new >> SslConnectionFactory(sslContextFactory, >> alpnConnectionFactory.getProtocol()); >> > ServerConnector httpsConnector = new ServerConnector(server, >> sslConnectionFactory, alpnConnectionFactory,http2ConnectionFactory, >> httpConnectionFactory); >> > httpsConnector.setPort(SSL_PORT); >> > >> > becomes: >> > >> > https://gist.github.com/jnorthrup/1ee1974e45ae387663e9f49843b05cf6 >> > >> > (launcher code included below the log) >> >> The logs show: >> >> 13:10:01.038 [qtp341878976-48] DEBUG >> org.eclipse.jetty.server.HttpConnection - >> HttpConnection@695185eb::SocketChannelEndPoint@17937937{/127.0.0.1:54802 >> <->/127.0.0.1:8080,OPEN,fill=-,flush=-,to=0/30000}{io=0/0,kio=0,kro=1}... >> 13:10:01.039 [qtp341878976-27] DEBUG org.eclipse.jetty.http.HttpParser >> - Illegal character CNTL=0x16 in state=START for buffer >> HeapByteBuffer@46c545dc >> [p=1,l=517,c=8192,r=516]={\x16<<<\x03\x01\x02\x00\x01\x00\x01\xFc\x03\x03\xA0\x1a\x13\xE9\xC0\x12\xD8...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>>> >> >> 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 >> ---- >> http://cometd.org >> http://webtide.com >> Developer advice, training, services and support >> from the Jetty & CometD experts. >> _______________________________________________ >> jetty-users mailing list >> [email protected] >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://www.eclipse.org/mailman/listinfo/jetty-users >> >
_______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users
