Closed nielsm5 closed 5 months ago
Hi,
Looking at the code I think it could be changed to be a Thread.yield() call, as that loop just comes back round and waits for another socket connection at the accept().
Sounds good. Are you going to do some experiments with that suggested change, to see if that still works fine in all situations?
Yeah, I'll need to test it when I get a chance, see if I can get that done this week.
Did you find any time yet to verify the solution of Thread.yield()
instead of a sleep? We'd appreciate it 😉
I implemented the fix and did some testing, I thought I’d checked the fix in but just checked and the fix has not been pushed to GitHub. I’m away on holiday at the moment but will be back home this weekend, I’ll get the fix pushed to GitHub, I have some other changes I’m working on for the next release but that will be a while before I’m ready to push those changes and do a new release.
Thanks! For us, pushing out a patch release with only this fix, would already be great 👍🏻 It is totally fine to make a patch release and later a minor/major release with bigger changes. Just my 2 cents.
I've just pushed the FTP server change, plus some changes to the FTP configuration I needed for testing with a Docker setup. The update is version 1.3.17.
Thanks man! The new version will be available on Maven Central? I didn't find it in Maven Central and https://www.filesys.org/maven/org/filesys/ yet.
Not on Maven Central yet, I need to do some juggling with versions, should be there later today hopefully.
JFileServer 1.3.17 is now available from Maven Central
The issue can be closed, we're extremely happy with the results!
Thanks for fixing it @FileSysOrg. It works fine for us 👍🏻
Ok, great, I'll close this issue
Hey,
I noticed that the server runnable has a 1 second timeout. We use this library extensively to test out filesystem implementations but right now each test takes a minimum of 1 second which greatly increases our build times. https://github.com/FileSysOrg/jfileserver/blob/e1ca63bd70d74959970c4840c86de815d8e296c8/src/main/java/org/filesys/ftp/FTPServer.java#L548
Is it possible to make this value configurable?