example/server.rb in http-2-0.8.4 vs example/server.rb in http-2-0.9.0

- old
+ new

@@ -34,12 +34,10 @@ ctx.alpn_select_cb = lambda do |protocols| raise "Protocol #{DRAFT} is required" if protocols.index(DRAFT).nil? DRAFT end - ctx.tmp_ecdh_callback = lambda do |*_args| - OpenSSL::PKey::EC.new 'prime256v1' - end + ctx.ecdh_curves = 'P-256' server = OpenSSL::SSL::SSLServer.new(server, ctx) end loop do