Hello,
First of all, apologies for using the Fess forum to ask a JCIFS related question but your repository does not have issues enabled.
Regarding the issue, I am establishing a connection to a SMB share that is located in the same machine and I have noticed that it takes about 7 seconds for the connection to be established. Do you have any suggestion as to what may be causing this problem? Here is a snippet of how I am creating the connection:
Properties props = new Properties(); CIFSContext clientContext = new BaseContext(newPropertyConfiguration(props)).withCredentials(credentials); //ntlm password authenticator SmbFile share = new SmbFile("smb://" + hostname + "/" + shareName + "/", clientContext); try { share.connect(); } catch(SmbException e) { }
I have taken measurements and it is the connect call that is causing the issue. I have tried using a different machine, testing with a share located in another machine instead of local, using a SingletonContext, but the results remained the same.
Thank you for your time.
Best regards,
Tiago