I am using Dropbox Java API to make a large amount of requests to Dropbox API to createFolder and upload files. Currently, I am doing this sequentially, that is, no parallel thread, etc. I am regularly getting the above error from Dropbox. The pseudo code basically looks like this:
DbxRequestConfig config = new DbxRequestConfig(CLIENT_IDENTIFIER, Locale.getDefault().toString());
DbxClient client = new DbxClient(requestConfig, accessToken);
for ( int di = ; di < (large number) ; ++di )
DbxEntry.Folder folderEntry = client.createFolder(somePath[di]);
client.createFolder will throw DbxException, specifically on DbxException.NetworkIO.
Does the API close all the socket properly after each request?