tracker issue : CF-4199596

select a category, or use search below
(searches all categories and all time range)
Title:

FileOpen - Timeout parameter / a way of auto closing/timing out the connection

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/AsDesigned

Reporter/Name(from Bugbase): Chris Hopkins / Chris Hopkins ()

Created: 08/31/2017

Components: File Management

Versions: 2016

Failure Type: Others

Found In Build/Fixed In Build: /

Priority/Frequency: Normal /

Locale/System: /

Vote Count: 0

It would be nice if when using FileOpen there was a parameter that defined a timeout (probably in milliseconds, but i am fine with seconds) that auto closed the file if it was not interacted with in that time.

Basically i find using try/catch around all file operations to catch this to be a bit of an annoyance and if something causes an error it would be great if we had a way of auto closing the file so that another bit of code or program can access it. 

Its quite possible that the proposal above is not the best way of achieving this but some way to close the file if its not used after a period without having to resort to try/catching would be nice.

Attachments:

Comments:

Chris, I understand your concern here. But I see two different scenarios here: 1)An error occurrence doesnot imply that file has not been interacted. 2)Closing the file if it is not interacted for a period makes a sense. Will 2 solve your problem here. This can be taken up as an enhancement.
Comment by Poonam J.
382 | September 01, 2017 04:31:49 AM GMT
Hello Chris, If an Ehancement like an attribute set to some timeperiod which when enable will close the file if file is not interated for a period will solve you proble. If yes, an enhancement can be taken up for the same.
Comment by Poonam J.
383 | September 18, 2017 08:59:58 AM GMT
Sounds good to me
Comment by Chris H.
384 | September 18, 2017 09:13:38 AM GMT
Due to existing design limitation that underlying Java Library provides, we cannot take this up as an Enhancement.
Comment by Poonam J.
27332 | April 10, 2018 06:18:42 AM GMT