ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
ox is now known as oz
sagax has quit [Quit: Konversation terminated!]
jmdaemon has quit [Read error: Connection reset by peer]
jmdaemon has joined #crystal-lang
notzmv has quit [Ping timeout: 240 seconds]
jmdaemon has quit [Ping timeout: 272 seconds]
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #crystal-lang
notzmv has joined #crystal-lang
<FromGitter> <636f7374> Hi guys, I have a problem, it seems that `OpenSSL::SSL::Context::Client` (`alpn_protocol=`) is not working, please help, Thanks. 🙏
<FromGitter> <636f7374> `require "openssl" ⏎ require "socket" ⏎ ⏎ destination_socket = TCPSocket.new host: "www.cloudflare.com", port: 443_i32, dns_timeout: 10_i32.seconds, connect_timeout: 10_i32.seconds ⏎ destination_socket.read_timeout = 10_i32.seconds ... [https://gitter.im/crystal-lang/crystal?at=622df4b79bd1c71eca9eac44]
<FromGitter> <636f7374> I don't see Extension: ALPN Protocol through Wireshark, but `OpenSSL::SSL::Context::Server` (`alpn_protocol=`) works.
<FromGitter> <636f7374> and It seems that `HTTP/1.1 400 Bad Request` is caused by missing `alpn_protocol`.
avane has quit [Quit: o/]
<FromGitter> <Blacksmoke16> pretty sure its setting it correctly
<FromGitter> <Blacksmoke16> try `pp destination_socket_context.alpn_protocol` after setting it to confirm
<FromGitter> <Blacksmoke16> er apparently there isn't a getter so just `pp destination_socket_context`
<FromGitter> <Blacksmoke16> oo maybe not...
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/cvuh would have expected this to print `"h2"`
avane has joined #crystal-lang
<FromGitter> <Blacksmoke16> id file an issue for it
<FromGitter> <636f7374> @Blacksmoke16 Ok thanks, I'll submit an Issue later.
<FromGitter> <636f7374> #11895
<FromGitter> <Blacksmoke16> 👍 perfect
<FromGitter> <636f7374> :)
ua_ has quit [Ping timeout: 256 seconds]
_whitelogger_ has joined #crystal-lang
ua_ has joined #crystal-lang
notzmv has quit [Ping timeout: 240 seconds]
ur5us has joined #crystal-lang
ur5us has quit [Read error: Connection reset by peer]
ur5us_ has joined #crystal-lang
jmdaemon has joined #crystal-lang
notzmv has joined #crystal-lang
ur5us_ has quit [Ping timeout: 240 seconds]
ur5us_ has joined #crystal-lang