草庐IT

PdoSessionHandler

全部标签

php - 锁定等待超时 Symfony2 Ratchet with PdoSessionHandler

我使用PdoSessionHandler将用户的session存储在数据库中,以便使用sessionSymfony2服务器和Ratchet服务器进行通信。它连接正常,发送消息正常,但是当我切换到Symfony2应用程序中的其他页面或关闭session时,它会调用onClose函数。然后应用程序被阻止并返回以下错误:SQLSTATE[HY000]:Generalerror:1205Lockwaittimeoutexceeded;tryrestartingtransaction500InternalServerError-PDOException服务器看起来像:$pdo=newPDO('m