Closed oleg1540 closed 1 year ago
Try to cancel query before pg_close()
in src/PgSqlHandle.php::close()
.
Start Query Loop heartbeat: 1661196633 Loop heartbeat: 1661196634 Close connection The connection was closed Loop heartbeat: 1661196635 Loop heartbeat: 1661196636 Loop heartbeat: 1661196637 Loop heartbeat: 1661196638
v1.4.5
.
If we have a long running query and try to close connection while it is executing, loop will be blocked.
Script:
Result:
Loop was blocking for 8 seconds from 1661195556 to 1661195564 until query end. Is it expected behavoir?
Seems, loop must not be blocked in this case.