Hello.
I'm using the latest php library to work with Adwords API.
I have some background processes which can run for a long time. They use different services (Campaign, AdGroup, AdGroupAd, etc.).
Process unexpectedly die after some period of time with error 'too many open files'.
At first I increased the limit of open files in the system and users, but error wasn't fixed.
Then I watched with 'lsof' all opened files and found out that the number of file descriptors with TCP connection to Google servers always increasing without being closed.
Help me fix this problem please.