Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

FTP server in java doesn't work well at win os in some status.Why?

843790Nov 23 2008 — edited Nov 25 2008
As we know,FTP server in java used to use "BufferedOutputStream(socket.getOutputStream())" to complete data transfer.
socket.getOutputStream() returns SocketOutputStream, and SocketOutputStream use native method:socketWrite0 to transfer data.

I writted a FTP server in java that runs at win XP or win 2003 server. FTP client download file through internet,and when file size is large(for example, 5M),the download is failure. But I changed FTP server in C++,the download is ok. These PCs have multi network card commonly.
In the first instance,I thinked my programm may be written wrong. But I have used CrossFTP and DanoFTP at sourceforge.net, they failed too.
I have compared the source code of these FTP server and they are same in data transfer.

There are another strange phenomenon.FTP server at some PC works well. For example,when I install FTP server at another PC.So I think that it is not link problem,and may be relate with PC's configuration?

Any help appreciate.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 23 2008
Added on Nov 23 2008
3 comments
82 views