Commit f132194c authored by Russell Power's avatar Russell Power Committed by TensorFlower Gardener
Browse files

SessionRef: add a timeout to avoid blocking Session::Close() forever.

Some operations/sub-systems do not respect TF cancellation operations.  This
can result in Session:Close() hanging when waiting for these operations to
finish.

This CL adds a default timeout of 60 seconds to ensure we always return control
back to the client eventually.

PiperOrigin-RevId: 229806493
parent 26cb1cd0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment