<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">


I&nbsp;found&nbsp;it`s&nbsp;so&nbsp;slow&nbsp;when&nbsp;i&nbsp;use&nbsp;jcifs&nbsp;to&nbsp;get&nbsp;file&nbsp;from&nbsp;a&nbsp;remote&nbsp;server,&nbsp;only&nbsp;around&nbsp;10mb,&nbsp;<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-size: 12pt; font-family: times new roman,new york,times,serif;"><div><div><font size="2" face="Verdana">
<div>but&nbsp;it`s&nbsp;very&nbsp;fast&nbsp;when&nbsp;i&nbsp;use&nbsp;the&nbsp;direct&nbsp;url&nbsp;to&nbsp;get&nbsp;the&nbsp;same&nbsp;file,&nbsp;the&nbsp;speed&nbsp;was&nbsp;up&nbsp;to&nbsp;80mb,&nbsp;</div>
<div>i&nbsp;set&nbsp;the&nbsp;property&nbsp;jcifs.smb.client.rcv_buf_size&nbsp;with&nbsp;value&nbsp;1024*1024,&nbsp;but&nbsp;</div>
<div>it&nbsp;didn`t&nbsp;work,&nbsp;so&nbsp;i&nbsp;noticed&nbsp;the&nbsp;jcifs&nbsp;src&nbsp;code,&nbsp;i&nbsp;found&nbsp;the&nbsp;default&nbsp;constructor&nbsp;of&nbsp;</div>
<div>SmbFileInputStream&nbsp;set&nbsp;readSize&nbsp;to&nbsp;the&nbsp;mini&nbsp;value&nbsp;between&nbsp;</div>
<div>transport.rcv_buf_size&nbsp;and&nbsp;transport.server.maxBufferSize,&nbsp;when&nbsp;i&nbsp;debug&nbsp;it,&nbsp;i&nbsp;found&nbsp;maxBufferSize&nbsp;</div>
<div>is&nbsp;only&nbsp;around&nbsp;6&nbsp;kilos,&nbsp;this&nbsp;is&nbsp;why&nbsp;so&nbsp;slowlly&nbsp;when&nbsp;i&nbsp;use&nbsp;the&nbsp;jcifs&nbsp;to&nbsp;get&nbsp;the&nbsp;file.&nbsp;</div>
<div>i&nbsp;don't&nbsp;know&nbsp;too&nbsp;many&nbsp;about&nbsp;CIFS/SMB,&nbsp;so&nbsp;i&nbsp;wonder&nbsp;why&nbsp;do&nbsp;we&nbsp;have&nbsp;to&nbsp;use&nbsp;the&nbsp;server`s&nbsp;</div>
<div>maxBufferSize&nbsp;on&nbsp;client?&nbsp;and&nbsp;how&nbsp;can&nbsp;i&nbsp;improve&nbsp;the&nbsp;efficiency&nbsp;about&nbsp;this?</div>
<div></div>
<div>thank&nbsp;you!</div>
<div></div></font></div><br></div></div></div><a rel="nofollow" target="_blank" href="http://cn.rd.yahoo.com/mail_cn/tagline/card/*http://card.mail.cn.yahoo.com/"></a></div></div></div><br>


      <hr size=1><a href="http://cn.rd.yahoo.com/mail_cn/tagline/card/*http://card.mail.cn.yahoo.com/">  好玩贺卡等你发,邮箱贺卡全新上线!</a></body></html>