FTP server in java doesn't work well at win os in some status.Why?
843790Nov 23 2008 — edited Nov 25 2008As 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.