$http_worker->onMessage = function($connection, $data){ $pdo = new PDO("mysql:host=".$conf.";dbname=".$conf,$conf,$conf); .... $connection->send($data); } onMessage 中回调函数执行完成, $pdo 是否被自动...