2

I'm working actually on a file transfer system using socket.io and HTML5 file API. https://github.com/xblaster/Nodjawnloader (stable branch)

The main problem I have is for huge file. Socket.io send me all packets in one huge transfer chunk and the Google Chrome javascript VM just crash when it receive around 70MB of packets.

Can I limit socket.io chunks for xhr-poll or jsonp calls ?

4

1 回答 1

0

在 XHR 或 JSONP 上没有限制数据包大小的机制,但没有什么能阻止您自己拆分文件并发送块。然后你可以在客户端重新组装。

于 2013-07-19T00:44:36.583 回答