• Joshua Gutow's avatar
    op-node: Set RPC timeouts · 56789460
    Joshua Gutow authored
    This is done in BaseClient because all RPC calls in the op-node
    flow through the base client. I have set it to 10s for the
    CallContext and 20s for the BatchCallContext. These values
    are large enough to handle complex computation, but will prevent
    a slow loris or throttling attack. Smaller timeouts can stil be
    set further up the chain.
    56789460
rpc.go 4.67 KB