httpGet on local loopback hangs - C7 - 2.3.8.125

I stumbled upon a problem where making calls to httpGet to access local files - unfortunately, some community apps still use this method even though there's an API - just hang.

By accident, while running some test code, my app made calls to fetch a "big" file (over 200 KB) using httpGet. The reported CPU load shot up (load over 1) and stayed up. The hub remained responsive so I assume that number was just reflective of the pending (blocking) call.

I didn't immediately realize what was going on so deleted the app and the code from the hub... that didn't do anything. I finally realized I should delete the file from File Manager and got

with the hub load coming back to normal.

That was long (hours) after that httpGet call was initially made, so it doesn't look as though it would have ever returned. Shouldn't there have been a timeout after 300 seconds, as per documentation?

I reproduced the issue on another C7, with a different file and got the same behaviour.

Obviously the solution for this specific use-case is to use the File Manager API.

@gopher.ny