-
Hello, Is it possible to get timeout value in EvDriver that would be the equivalent of StreamSelectDriver::getTimeout? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Not in a simple way, no. There's not a good solution to poll mysql connections within the event loop because ext-mysqli doesn't expose a socket which can be polled like, for example, ext-pgsql. The best solution is likely a short repeating timer which calls Instead though I'd recommend you check out |
Beta Was this translation helpful? Give feedback.
Not in a simple way, no.
There's not a good solution to poll mysql connections within the event loop because ext-mysqli doesn't expose a socket which can be polled like, for example, ext-pgsql.
The best solution is likely a short repeating timer which calls
mysqli::poll()
with either a very short or zero timeout.Instead though I'd recommend you check out
amphp/mysql
, which has IMO a better interface than ext-mysqli and has full async support.