mirror of
https://gitea.invidious.io/iv-org/lsquic.cr
synced 2024-08-15 00:43:31 +00:00
Fix local variable stream_ctx
This commit is contained in:
parent
820c169849
commit
b84cc84aa1
1 changed files with 7 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
require "http"
|
require "http"
|
||||||
require "socket/udp_socket"
|
require "socket"
|
||||||
|
|
||||||
struct QUIC::PeerCtx
|
struct QUIC::PeerCtx
|
||||||
property socket : UDPSocket
|
property socket : UDPSocket
|
||||||
|
@ -37,13 +37,14 @@ class QUIC::Client
|
||||||
getter port : Int32
|
getter port : Int32
|
||||||
getter! tls : OpenSSL::SSL::Context::Client
|
getter! tls : OpenSSL::SSL::Context::Client
|
||||||
|
|
||||||
@peer_ctx : PeerCtx | Nil
|
|
||||||
@engine : LibLsquic::EngineT | Nil
|
|
||||||
@conn : LibLsquic::ConnT | Nil
|
@conn : LibLsquic::ConnT | Nil
|
||||||
@engine : LibLsquic::EngineT | Nil
|
@engine : LibLsquic::EngineT | Nil
|
||||||
@engine_settings : LibLsquic::EngineSettings
|
@engine : LibLsquic::EngineT | Nil
|
||||||
@stream_if : LibLsquic::StreamIf
|
|
||||||
@engine_api : LibLsquic::EngineApi
|
@engine_api : LibLsquic::EngineApi
|
||||||
|
@engine_settings : LibLsquic::EngineSettings
|
||||||
|
@peer_ctx : PeerCtx | Nil
|
||||||
|
@stream_ctx : StreamCtx
|
||||||
|
@stream_if : LibLsquic::StreamIf
|
||||||
|
|
||||||
@dns_timeout : Float64?
|
@dns_timeout : Float64?
|
||||||
@connect_timeout : Float64?
|
@connect_timeout : Float64?
|
||||||
|
@ -381,7 +382,7 @@ class QUIC::Client
|
||||||
|
|
||||||
private def exec_internal_single(request)
|
private def exec_internal_single(request)
|
||||||
send_request(request)
|
send_request(request)
|
||||||
HTTP::Client::Response.from_io?(stream_ctx.io, ignore_body: request.ignore_body?) do |response|
|
HTTP::Client::Response.from_io?(@stream_ctx.io, ignore_body: request.ignore_body?) do |response|
|
||||||
yield response
|
yield response
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue