omegahat / RCurl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fileUpload leaves open connection to the file

StevenMMortimer opened this issue · comments

After submitting POST requests with fileUpload, the connection to the file is left open. I can see this by running showConnections().

I thought I read RCurl leaves connections open by default to be reused, but should the file connection from file upload be left open? If so, it might be helpful to have a switch or make it more clear that a switch exists to close the connection. I was running into error messages about too many open connections, so my temporary workaround is to use showConnections() to list connections and close anything with a description that has the same file name as something I just posted with fileUpload