Re: EOFException when file gets modified during sendFile

2015-05-15 Thread Jon V.
Maybe the file should be locked until send is complete. Really shouldn't allow sending of a file while it is being modified. On May 15, 2015 5:31 PM, "Charlie Kim" wrote: > Hi there, I'm seeing EOFException when file gets modified during sendFile > command. > Here is the scenario. Client receiv

EOFException when file gets modified during sendFile

2015-05-15 Thread Charlie Kim
Hi there, I'm seeing EOFException when file gets modified during sendFile command. Here is the scenario.  Client receives the size of the file as 1000.  Then, before inputstream is read, file gets modified which the file size becomes greater that what it was specified and this causes read to fai