Skip to content

Commit

Permalink
tweak Servers.jl for new Connection args
Browse files Browse the repository at this point in the history
  • Loading branch information
samoconnor committed Mar 4, 2018
1 parent b6667b0 commit a636f37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ConnectionPool.jl
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ struct ConnectTimeout <: Exception
port
end

function getconnection(::Type{TCPSocket},
function getconnection(::Type{Sockets.TCP},
host::AbstractString,
port::AbstractString;
keepalive::Bool=false,
Expand Down
2 changes: 1 addition & 1 deletion src/Servers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ function listen(f::Function,
continue
end
io = ssl ? getsslcontext(io, sslconfig) : io
let io = Connection(host, string(port), pipeline_limit, io)
let io = Connection(host, string(port), pipeline_limit, 0, io)
@info "Accept: $io"
@async try
handle_connection(f, io; kw...)
Expand Down

0 comments on commit a636f37

Please sign in to comment.