The reconnection ends up in a bad loop if the transaction is already
finished, causing $tx->finish to throw an error.
Sun Mar 3 10:55:22 2019 OP 1 SEQ 293 HEARTBEAT
Sun Mar 3 10:55:22 2019 (send_op) Failed heartbeat check. Closing connection with Code 4009: Heartbeat Failure
Sun Mar 3 10:55:22 2019 (on_finish) Websocket Connection Closed with Code 4009 (Timeout: Heartbeat Failure)
Mojo::Reactor::Poll: Timer failed: Can't call method "write" on an undefined value at lib/perl5/Mojo/UserAgent.pm line 351.
The reconnection ends up in a bad loop if the transaction is already finished, causing $tx->finish to throw an error.
Sun Mar 3 10:55:22 2019 OP 1 SEQ 293 HEARTBEAT Sun Mar 3 10:55:22 2019 (send_op) Failed heartbeat check. Closing connection with Code 4009: Heartbeat Failure Sun Mar 3 10:55:22 2019 (on_finish) Websocket Connection Closed with Code 4009 (Timeout: Heartbeat Failure) Mojo::Reactor::Poll: Timer failed: Can't call method "write" on an undefined value at lib/perl5/Mojo/UserAgent.pm line 351.
Also, 4003 is needed in the no_resume list.