amphp / mysql

An async MySQL client for PHP, optimizing database interactions with efficient non-blocking capabilities. Perfect for responsive, high-performance applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in timeout connector

prolic opened this issue · comments

The timeout configured is basically ignored. see vendor/amphp/socket/src/functions.php:70.

$timeout = $socketContext->getConnectTimeout();

so the timeout is fetched from socket context, the timeout from the timeout connector is more or less useless.

I found this while having default mysql timeout of 5 secs and got a timeout after 10 secs only.

The issue in amphp/socket where cancellation requests were not immediately honored was addressed in amphp/socket@2cb9d0e.