Calls to read of a secure socket (readtms) can fail to return any data and fail to fire exception if min_size > 0.
The jsocket ISocket implementation will fire a JSOCKERR_graceful_close if min_size > 0 in these circumstances.
As a consequence of this issue, code that loops reading with a min_size>0 (and doesn't check return is 0, because it expects min_size or exception), loops forever.
Details of the event that initially cause this issue to reported at in the related issue (
ECL Watch dropzone does not show any of the files and folders every so often without a restart of the esp. It seems that this would be a great inconvenience in a busier environment like Dataland or Production.