Skip to content

Commit

Permalink
Increase default REMBUS_TIMEOUT
Browse files Browse the repository at this point in the history
  • Loading branch information
attdona committed Jun 3, 2024
1 parent bd10e72 commit 7e75241
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Rembus.jl
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ broker_dir() = CONFIG.db

keystore_dir() = get(ENV, "REMBUS_KEYSTORE", joinpath(broker_dir(), "keystore"))

request_timeout() = parse(Float32, get(ENV, "REMBUS_TIMEOUT", "5"))
request_timeout() = parse(Float32, get(ENV, "REMBUS_TIMEOUT", "10"))

connect_request_timeout() = parse(Float32, get(ENV, "REMBUS_CONNECT_TIMEOUT", "10"))

Expand Down
3 changes: 3 additions & 0 deletions src/broker.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1788,6 +1788,9 @@ function broker(self, router)
@warn "unknow $(typeof(msg)) message $msg "
end
end
catch e
@error "broker: $e"
rethrow()
finally
for tw in values(router.id_twin)
## detach(tw)
Expand Down
2 changes: 1 addition & 1 deletion src/encode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ function encode_partial(data)
end

function add_payload(io, payload)
if isa(payload, IOBuffer)
if isa(payload, Base.GenericIOBuffer)
pos = position(payload)
write(io, payload)
seek(payload, pos)
Expand Down

0 comments on commit 7e75241

Please sign in to comment.