JCIFS: file retrieval is too slow to be usable

后端 未结 7 1498
北海茫月
北海茫月 2020-12-05 05:57

I was just testing JCIFS for accessing Windows shares. It is very slow to the point of being completely unusable.

import jcifs.smb.*;

class First {
    publ         


        
7条回答
  •  一整个雨季
    2020-12-05 06:22

    In my own case, pushing files TO a Windows share via JCIFS was too slow to be usable.

    The solution turned out to be defining the property

    -Djcifs.resolveOrder=DNS
    

    The default inclusion of BCAST -- broadcasting a NetBIOS name query to 255.255.255.255 -- was needlessly resulting in a lengthy delay. (Link above de-framed from the top-level API docs.)

提交回复
热议问题