teamace/bubbles — Issue #13: Common: 传大文件就崩
Author: wanderseeme
Created: 2012-01-14 06:47:20+00:00
State: open

图片也有大文件对吧，5MB的传了就崩了。
原因很简单，文件太大，write socket的时候超时了。

2012-01-14 14:38:28.501 BubblesOnMac[3221:707] AsyncSocketDelegate willDisconnectWithError : Error Domain=AsyncSocketErrorDomain Code=5 "Write operation timed out" UserInfo=0x105106c40 {NSLocalizedDescription=Write operation timed out}

[sock writeData:t withTimeout:kWDBubbleTimeOut tag:0];

#define kWDBubbleTimeOut 5

现在设的是5秒，不能一味增大这个，而应该分包？