Hi folks,I'm having a sporadic issue with my Node/Strongloop server. My setup is as follows:My node version is v4.2.4, I'm running Node on Windows 10 Professional.Client side:nw.js client that traverses the local file-system and computes the MD5 value of files.Using a request.post, the client sends the hash of the file to the server in the format 'fileHash: d41d8cd98f00b204e9800998ecf8427e' (that's just an example hash, I know it's an empty file)Server side:Node/Strongloop server running at localhost:3000.The server reads the data that's posted from the client and queries a MySQL database which is for a match of the hash.The response from the server will be in the format "goodResult : true" if the hash exists in the database or "goodResult : false" if not.Issue:The server can respond with ~1000 queries before the following appears throughout the responses:{ [Error: connect ECONNREFUSED 127.0.0.1:3000] code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 3000 }I think the Strongloop server is throttling the API calls and I was wondering there's a way to remove the automatic rate limiting?This project will never be outside of my local machine so I have no security on it and there's no sensitive data or other users trying to use the API.At max speed the server should be able to handle a few thousand requests a second.Any help would be appreciated!
Submitted February 02, 2016 at 11:58PM by microbass
No comments:
Post a Comment