如何阻止cURL锁死我的PHP会话? [英] How do I stop cURL from deadlocking my PHP session?
本文介绍了如何阻止cURL锁死我的PHP会话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以基本上,我使用cURL来调用我不能在PHP本机实现的API。当我打电话虽然,它死锁我的PHP会话。我无法从浏览器中的其他标签页连接到我的网站。如果我删除会话cookie,我可以连接好。之前,当我没有在cURL中超时,这将无限期。
So basically, I am using cURL to call APIs that I can't implement natively in PHP. When I make a call though, it deadlocks my PHP session. I cannot connect to my website from another tab in my browser. If I delete the session cookie, I can connect fine. Before, when I didn't have a timeout in cURL, this would last indefinitely.
这是cURL的PHP实现的工作原理,
Is this just how the PHP implementation of cURL works, or is there a way around it?
推荐答案
这篇关于如何阻止cURL锁死我的PHP会话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文