DenRomano Posted January 28, 2011 Share Posted January 28, 2011 I get curl error 7 about 30% of the time. The text for the error is cURL error number: 7 - Error: Failed to connect to xxx.xxx.xxx.xxx No buffer space available Any thoughts? Quote Link to comment https://forums.phpfreaks.com/topic/225979-curl-error-7/ Share on other sites More sharing options...
QuickOldCar Posted January 28, 2011 Share Posted January 28, 2011 Well it couldn't connect to them. Maybe your ip is blocked, they are blocking get requests, maybe checking if is no user agent set, site is dead. Could be any numerous reasons why it's not. Quote Link to comment https://forums.phpfreaks.com/topic/225979-curl-error-7/#findComment-1166629 Share on other sites More sharing options...
DenRomano Posted January 28, 2011 Author Share Posted January 28, 2011 Sorry, I should have gave more information. It is checking my own sites that are alive and not blocking my own IP. Sometimes it makes it and sometime it does not. It is not that it could not connect it says it did not connect due to "No buffer space available". I did notice that if I run it as a cron job it fails much more often then if I call the url from by desktop computer. When it runs as a cron job it runs as a user but when I call the url from my desktop it runs as apache thanks Quote Link to comment https://forums.phpfreaks.com/topic/225979-curl-error-7/#findComment-1166664 Share on other sites More sharing options...
QuickOldCar Posted January 28, 2011 Share Posted January 28, 2011 Ahh yeah, most likely is the limit on your max total connections for your server congiguration If on a windows box is also an eventid patch to allow more connections or launch the registry editor by Start, Run and type regedit in the left pane navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters create the entry TcpNumConnections by right clicking in the right pane and choose new from the menu and select DWORD Value give it the name TcpNumConnections right click it and select modify and enter a value of 200 restart server you should probably increase any low apache or mysql limits that could prevent you from doing more as well, such as timeout,max connections, memory Quote Link to comment https://forums.phpfreaks.com/topic/225979-curl-error-7/#findComment-1166720 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.