Re: PHP True Async RFC

From: Date: Mon, 03 Mar 2025 15:46:28 +0000
Subject: Re: PHP True Async RFC
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Lock/Unlock issue


It seems that this is actually about a database query that puts the Fiber into a waiting state specifically, query("UNLOCK").

In that case, everything should work correctly. 
Although there are some dangerous edge cases. The database might be under high load, causing the query("UNLOCK") request to wait for too long, leading to a timeout. This would trigger another exception, which could then be interpreted as a complete failure.

Putting a Fiber into a waiting state inside a finally block does not contradict the shutdown mode. However, the programmer must be careful inside finally section because if a second exception occurs, it means the code cannot properly complete execution.

-- 
Ed.


Thread (110 messages)

« previous php.internals (#126553) next »