On Dec 17, 2016 5:42 PM, "Rich Morin" wrote: On Saturday, December 17, 2016 at 5:08:12 PM UTC-8, raggi wrote: > > This is a web server issue, not a rack issue. Most webservers will not let > you serve plaintext and TLS over the same port. When I say most, I mean I > don't know of any ruby webservers that support this, as all of them rely on > openssl listen sockets for TLS. > Hmmm. A lot of web servers I've encountered force a switch from HTTP to HTTPS, but then, they're also switching from port 80 to port 443. Thats precisely the point. I suppose that I could redirect requests from (say) http://:34567/... to https://:44567/..., but I'm not sure how useful that would be. Also, not exactly sure how to do this. Any other suggestions, anyone? Your other option is to fingerprint the first few bytes, which are more than sufficient to determine http/http2/TLS clienthello/unknown. Like I said, I don't know of any ruby implementations of this, so you'd likely have to write one. It's not particularly tricky. -r -- --- You received this message because you are subscribed to the Google Groups "Rack Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to rack-devel+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- --- You received this message because you are subscribed to the Google Groups "Rack Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to rack-devel+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.