我的php代码中的libcurl似乎无限期地停留在一个poll调用中.当我对进程id做了一个strace,
[user@server ~]$ sudo strace -p 19559
Process 19559 attached - interrupt to quit
poll([{fd=7, events=POLLIN}], 1, 1000) = 0 (Timeout)
poll([{fd=7, events=POLLIN}], 1, 0) = 0 (Timeout)
poll([{fd=7, events=POLLIN}], 1, 1000) = 0 (Timeout)
poll([{fd=7, events=POLLIN}], 1, 0) = 0 (Timeout)
poll([{fd=7, events=POLLIN}], 1, 1000) = 0 (Timeout)
poll([{fd=7, events=POLLIN}], 1, 0) = 0 (Timeout)
poll([{fd=7, events=POLLIN}], 1, 1000) = 0 (Timeout)
poll([{fd=7, events=POLLIN}], 1, 0) = 0 (Timeout)
poll([{fd=7, events=POLLIN}], 1, 1000) = 0 (Timeout)
Run Code Online (Sandbox Code Playgroud)
这无限期地持续下去.fd 7在/ proc/19559/fd中显示为
lrwx------ 1 root root 64 Sep 19 19:44 7 -> socket:[335178801]
Run Code Online (Sandbox Code Playgroud)
有人能告诉我为什么会这样.我可以做些什么来使libcurl在超时时退出
| 归档时间: |
|
| 查看次数: |
1880 次 |
| 最近记录: |