- 论坛徽章:
- 0
|
回复 2# happy_fish100
感谢您的解答,问题解决了,谢谢!
在java 客户端上传文件时还发现一点小问题,不知道能不能抽空帮忙解决下:
1.java客户端上传文件都正常,没有报错,但是在storaged.log和trackerd.log日志发现以下错误提示:
[2014-12-02 11:26:42] ERROR - file: tracker_nio.c, line: 254, client ip: 192.168.7.95, recv failed, errno: 104, error info: Connection reset by peer
[2014-12-02 11:26:45] ERROR - file: tracker_nio.c, line: 254, client ip: 192.168.7.95, recv failed, errno: 104, error info: Connection reset by peer
2.打开多个浏览器同时进行上传文件,大小为100M左右的视频文件,抛出以下异常:
java.io.IOException: recv package size -1 != 10
at org.csource.fastdfs.ProtoCommon.recvHeader(ProtoCommon.java:206)
at org.csource.fastdfs.ProtoCommon.recvPackage(ProtoCommon.java:242)
at org.csource.fastdfs.TrackerClient.getStoreStorage(TrackerClient.java:143)
at org.csource.fastdfs.StorageClient.newWritableStorageConnection(StorageClient.java:1912)
at org.csource.fastdfs.StorageClient.do_upload_file(StorageClient.java:702)
at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:207)
at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:225)
at org.csource.fastdfs.StorageClient1.upload_file1(StorageClient1.java:112)
at com.imageserver.ImageServerImpl.send(ImageServerImpl.java:79)
at com.imageserver.ImageServerImpl.uploadFile(ImageServerImpl.java:62)
at com.imageserver.ImageServerImpl.uploadFile(ImageServerImpl.java:55)
at test.LoopUploadTest$1.run(LoopUploadTest.java:53)
3.我想问下,能否用nginx进行上传文件?如果可以,能告诉我该如何使用吗?或是发个API链接给我也行 |
|