shadowsocks / shadowsocks-nodejs

https://github.com/shadowsocks/shadowsocks
Other
1.24k stars 725 forks source link

Download stuck at the end #76

Closed hsngdz closed 9 years ago

hsngdz commented 11 years ago

Hi,

I have found a bug that is present for a long time.

When I try to download a file from a server which doesn't support 'resume' feature, the transfer stuck at the very end and the file gets corrupted.

Same will happen when I try to download an app from Google play store, it will stop at 99% but after about about 1minute it will finish.

Please check the attached image: bug

clowwindy commented 11 years ago

Can't reproduce the bug. Have the following file downloaded several times with Chrome and it's OK.

http://wordpress.org/latest.zip

Please report detail information to reproduce it.

hsngdz commented 11 years ago

I have downloaded that using chrome, it was stuck at the end for some seconds and then finished but the file got corrupted.

Also you can try to download an app from Google play, it will stuck at 99% for at least 30sec.

I'm using AES-256-CFB and the latest node and shadowsocks version on the server.

Another issue is when I set socks proxy directly in the browser (both FF and Chrome) I can't download files, data transfer starts but no download dialog appear unless I use proxifier.

wp zip

clowwindy commented 11 years ago

Which client version are you using? Which nodejs version are you using?

hsngdz commented 11 years ago

v0.10.21 on both client and server. and shadowsocks 1.4.2

clowwindy commented 11 years ago

Still can't reproduce the bug. What happens if you use the Socks5 proxy only (using SwitchySharp), and download directly in your Chrome?

hsngdz commented 11 years ago

when I use SwitchySharp, data transfer starts (check using du meter) but the download dialog won't appear and won't save anything.

clowwindy commented 11 years ago

What if you remove any download plugins and use Chrome's download tool to download the file? Those download plugins may not work with proxies.

hsngdz commented 11 years ago

Both FireFox and Chrome won't start download.

I think this issue is related to Socks5 protocol because I had the same problem with PuTTy Socks5 tunnel.

The only bug I think shadowsocks-nodejs have is the data transfer of a file stuck at near end(99.99%)

zoghal commented 11 years ago

@clowwindy hi dear, I have a similar problem in downloading file with 1.4.2 this my log in server :

3 Dec 10:33:10 - remote api.twitter.com:443 error: Error: This socket has been e
nded by the other party
3 Dec 10:33:14 - connecting download3.vmware.com:443
3 Dec 10:33:16 - local error: Error: write ENOBUFS
3 Dec 10:33:16 - local error: Error: write ENOBUFS
3 Dec 10:33:16 - local error: Error: This socket is closed.
3 Dec 10:33:20 - connecting download3.vmware.com:443
3 Dec 10:33:22 - local error: Error: write ENOBUFS
3 Dec 10:33:22 - local error: Error: This socket is closed.
3 Dec 10:33:22 - local error: Error: This socket is closed.
3 Dec 10:33:22 - local error: Error: write ENOBUFS
3 Dec 10:33:22 - local error: Error: This socket is closed.
3 Dec 10:33:23 - connecting lp-push-server-546.lastpass.com:443
3 Dec 10:33:28 - connecting download3.vmware.com:443
3 Dec 10:33:30 - local error: Error: write ENOBUFS
3 Dec 10:33:30 - local error: Error: write ENOBUFS
3 Dec 10:33:30 - local error: Error: This socket is closed.
3 Dec 10:33:30 - connecting www.rescuetime.com:443
3 Dec 10:33:32 - connecting download3.vmware.com:443
3 Dec 10:33:34 - local error: Error: write ENOBUFS
3 Dec 10:33:34 - local error: Error: write ENOBUFS
3 Dec 10:33:34 - local error: Error: This socket is closed.
3 Dec 10:33:38 - connecting download3.vmware.com:443
3 Dec 10:33:40 - local error: Error: write ENOBUFS
3 Dec 10:33:40 - local error: Error: write ENOBUFS
3 Dec 10:33:40 - local error: Error: This socket is closed.
3 Dec 10:33:43 - connecting download3.vmware.com:443
3 Dec 10:33:44 - connecting lp-push-server-546.lastpass.com:443
3 Dec 10:33:45 - local error: Error: write ENOBUFS
3 Dec 10:33:45 - local error: Error: This socket is closed.
3 Dec 10:33:45 - local error: Error: write ENOBUFS
3 Dec 10:33:45 - local error: Error: This socket is closed.
3 Dec 10:33:47 - connecting download3.vmware.com:443
3 Dec 10:33:52 - local error: Error: write ENOBUFS
3 Dec 10:33:52 - local error: Error: write ENOBUFS
3 Dec 10:33:53 - connecting download3.vmware.com:443
3 Dec 10:33:55 - local error: Error: write ENOBUFS
3 Dec 10:33:55 - local error: Error: write ENOBUFS
3 Dec 10:33:58 - connecting download3.vmware.com:443
3 Dec 10:34:00 - local error: Error: write ENOBUFS
3 Dec 10:34:00 - local error: Error: write ENOBUFS
3 Dec 10:34:02 - connecting plus.google.com:443
3 Dec 10:34:03 - connecting download3.vmware.com:443
3 Dec 10:34:05 - local error: Error: write ENOBUFS
3 Dec 10:34:05 - local error: Error: This socket is closed.
3 Dec 10:34:05 - local error: Error: write ENOBUFS
3 Dec 10:34:05 - local error: Error: This socket is closed.
3 Dec 10:34:05 - connecting userstream.twitter.com:443
3 Dec 10:34:08 - connecting download3.vmware.com:443
3 Dec 10:34:10 - local error: Error: write ENOBUFS
3 Dec 10:34:10 - local error: Error: write ENOBUFS
3 Dec 10:34:20 - connecting talk.google.com:5222
3 Dec 10:34:32 - connecting lp-push-server-546.lastpass.com:443
3 Dec 10:34:49 - connecting talk.google.com:443
3 Dec 10:34:53 - connecting talk.google.com:443
3 Dec 10:34:56 - connecting lp-push-server-546.lastpass.com:443
3 Dec 10:35:02 - connecting pbs.twimg.com:80
3 Dec 10:35:02 - connecting translate.google.com:80
3 Dec 10:35:04 - connecting translate.google.com:80
3 Dec 10:35:05 - connecting lh6.googleusercontent.com:80
3 Dec 10:35:06 - connecting lh6.googleusercontent.com:80
3 Dec 10:35:06 - connecting www.gstatic.com:80
3 Dec 10:35:06 - connecting www.google-analytics.com:80
3 Dec 10:35:06 - connecting lh6.googleusercontent.com:80
3 Dec 10:35:06 - connecting lh6.googleusercontent.com:80
3 Dec 10:35:06 - connecting ssl.gstatic.com:80
3 Dec 10:35:06 - connecting ssl.gstatic.com:80
3 Dec 10:35:06 - connecting ssl.gstatic.com:80
3 Dec 10:35:06 - connecting ssl.gstatic.com:80
3 Dec 10:35:10 - connecting translate.google.com:80
3 Dec 10:35:10 - connecting translate.google.com:80
3 Dec 10:35:13 - connecting plus.google.com:443
3 Dec 10:35:13 - connecting apis.google.com:443
3 Dec 10:35:14 - connecting csi.gstatic.com:80
3 Dec 10:35:14 - connecting csi.gstatic.com:80
3 Dec 10:35:15 - connecting pbs.twimg.com:80
3 Dec 10:35:16 - connecting www.bing.com:80
3 Dec 10:35:16 - connecting www.google.com:80
3 Dec 10:35:16 - connecting toolbarqueries.google.com:80
3 Dec 10:35:16 - connecting xml.alexa.com:80
3 Dec 10:35:16 - connecting siteanalytics.compete.com:80
3 Dec 10:35:16 - connecting www.google.com:80
3 Dec 10:35:16 - connecting www.bing.com:80
3 Dec 10:35:16 - connecting www.quantcast.com:443
3 Dec 10:35:17 - connecting siteanalytics.compete.com:443
3 Dec 10:35:17 - connecting www.google.com:443
3 Dec 10:35:18 - connecting ocsp.digicert.com:80
3 Dec 10:35:18 - connecting ocsp.godaddy.com:80
3 Dec 10:35:27 - connecting talkx.l.google.com:5222
3 Dec 10:35:30 - connecting translate.google.com:80
3 Dec 10:35:34 - connecting ssl.gstatic.com:80
3 Dec 10:35:34 - connecting ssl.gstatic.com:80
3 Dec 10:35:34 - connecting ssl.gstatic.com:80
3 Dec 10:35:34 - connecting ssl.gstatic.com:80
3 Dec 10:35:36 - connecting pbs.twimg.com:80
3 Dec 10:36:01 - connecting talkx.l.google.com:443
3 Dec 10:36:02 - connecting lp-push-server-546.lastpass.com:443
3 Dec 10:36:10 - connecting github.com:443
3 Dec 10:36:20 - connecting safebrowsing.clients.google.com:80
3 Dec 10:37:24 - remote ::1:5357 error: Error: connect EAFNOSUPPORT
3 Dec 10:37:24 - remote uataigjjlp:80 error: Error: getaddrinfo ENOTFOUND
3 Dec 10:37:24 - remote xklypdqwcg:80 error: Error: getaddrinfo ENOTFOUND
3 Dec 10:37:24 - remote stgfrltufe:80 error: Error: getaddrinfo ENOTFOUND
3 Dec 10:37:24 - connecting www.google.com:443
3 Dec 10:37:24 - connecting mail.google.com:443
3 Dec 10:37:24 - connecting lp-push-server-546.lastpass.com:443
3 Dec 10:37:24 - connecting talk.google.com:443
3 Dec 10:37:24 - connecting mail.google.com:443
3 Dec 10:37:24 - connecting lp-push-server-546.lastpass.com:443
3 Dec 10:37:24 - connecting lp-push-server-546.lastpass.com:443
3 Dec 10:37:24 - connecting talk.google.com:5222
3 Dec 10:37:24 - connecting userstream.twitter.com:443
3 Dec 10:37:24 - connecting api.twitter.com:443
3 Dec 10:37:24 - connecting userstream.twitter.com:443
3 Dec 10:37:24 - connecting userstream.twitter.com:443
3 Dec 10:37:24 - connecting um05.eset.com:80
3 Dec 10:37:24 - connecting um05.eset.com:80
3 Dec 10:37:27 - connecting chatenabled.mail.google.com:443
3 Dec 10:37:44 - connecting talkx.l.google.com:443
3 Dec 10:37:52 - connecting www.google.com:80
3 Dec 10:37:54 - connecting translate.google.com:80
3 Dec 10:38:01 - connecting github.com:443
3 Dec 10:38:02 - connecting ocsp.digicert.com:80
3 Dec 10:38:06 - connecting talk.google.com:443
3 Dec 10:38:06 - connecting api.twitter.com:443
3 Dec 10:38:06 - connecting userstream.twitter.com:443
3 Dec 10:38:14 - connecting lp-push-server-546.lastpass.com:443
3 Dec 10:38:23 - connecting lp-push-server-546.lastpass.com:443
3 Dec 10:38:32 - connecting www.rescuetime.com:443
3 Dec 10:38:40 - connecting talkx.l.google.com:5222
3 Dec 10:38:55 - connecting download3.vmware.com:443
3 Dec 10:38:56 - local error: Error: write ENOBUFS
3 Dec 10:38:56 - local error: Error: write ENOBUFS
3 Dec 10:39:05 - connecting download3.vmware.com:443
3 Dec 10:39:07 - local error: Error: write ENOBUFS
3 Dec 10:39:07 - local error: Error: write ENOBUFS
3 Dec 10:39:07 - local error: Error: This socket is closed.
3 Dec 10:39:14 - connecting download3.vmware.com:443
3 Dec 10:39:16 - local error: Error: write ENOBUFS
3 Dec 10:39:16 - local error: Error: write ENOBUFS
3 Dec 10:39:16 - local error: Error: This socket is closed.
3 Dec 10:39:17 - connecting pbs.twimg.com:80
3 Dec 10:39:19 - connecting lp-push-server-546.lastpass.com:443
3 Dec 10:39:21 - connecting download3.vmware.com:443
3 Dec 10:39:23 - local error: Error: write ENOBUFS
3 Dec 10:39:23 - local error: Error: write ENOBUFS
3 Dec 10:39:28 - connecting download3.vmware.com:443
3 Dec 10:39:31 - connecting talkx.l.google.com:443
3 Dec 10:39:32 - local error: Error: write ENOBUFS
3 Dec 10:39:32 - local error: Error: This socket is closed.
3 Dec 10:39:32 - local error: Error: write ENOBUFS
3 Dec 10:39:32 - local error: Error: This socket is closed.
3 Dec 10:39:37 - connecting download3.vmware.com:443
3 Dec 10:39:39 - local error: Error: write ENOBUFS
3 Dec 10:39:39 - local error: Error: write ENOBUFS
3 Dec 10:39:39 - local error: Error: This socket is closed.
3 Dec 10:39:41 - connecting lp-push-server-546.lastpass.com:443
3 Dec 10:39:46 - connecting download3.vmware.com:443
3 Dec 10:39:47 - local error: Error: write ENOBUFS
3 Dec 10:39:47 - local error: Error: write ENOBUFS
3 Dec 10:39:47 - local error: Error: This socket is closed.
3 Dec 10:39:49 - connecting download3.vmware.com:443
3 Dec 10:39:51 - local error: Error: write ENOBUFS
3 Dec 10:39:51 - local error: Error: This socket is closed.
3 Dec 10:39:51 - local error: Error: write ENOBUFS
3 Dec 10:39:51 - local error: Error: This socket is closed.
3 Dec 10:39:53 - connecting pbs.twimg.com:80
3 Dec 10:39:58 - connecting download3.vmware.com:443
3 Dec 10:40:00 - local error: Error: write ENOBUFS
3 Dec 10:40:00 - local error: Error: This socket is closed.
3 Dec 10:40:00 - local error: Error: write ENOBUFS
3 Dec 10:40:00 - local error: Error: This socket is closed.
3 Dec 10:40:04 - connecting download3.vmware.com:443
3 Dec 10:40:06 - local error: Error: write ENOBUFS
3 Dec 10:40:06 - local error: Error: write ENOBUFS
3 Dec 10:40:11 - connecting download3.vmware.com:443
3 Dec 10:40:24 - remote talk.google.com:443 error: Error: connect ENOBUFS
3 Dec 10:40:29 - remote userstream.twitter.com:443 error: Error: connect ENOBUFS

3 Dec 10:40:31 - remote talk.google.com:5222 error: Error: connect ENOBUFS
3 Dec 10:40:36 - connecting talk.google.com:443
3 Dec 10:40:36 - connecting github.com:443
3 Dec 10:40:36 - connecting github.com:443
3 Dec 10:40:45 - connecting talkx.l.google.com:443
3 Dec 10:40:48 - local error: Error: write ENOBUFS
3 Dec 10:40:48 - local error: Error: write ENOBUFS
3 Dec 10:40:52 - connecting lp-push-server-546.lastpass.com:443
3 Dec 10:40:52 - connecting download3.vmware.com:443
3 Dec 10:40:54 - local error: Error: write ENOBUFS
3 Dec 10:40:54 - local error: Error: write ENOBUFS
3 Dec 10:40:55 - connecting download3.vmware.com:443
3 Dec 10:40:56 - connecting safebrowsing.google.com:443
3 Dec 10:40:57 - local error: Error: write ENOBUFS
3 Dec 10:40:57 - local error: Error: write ENOBUFS
3 Dec 10:40:58 - connecting safebrowsing-cache.google.com:443
3 Dec 10:41:00 - connecting lp-push-server-546.lastpass.com:443
3 Dec 10:41:00 - connecting download3.vmware.com:443
3 Dec 10:41:02 - connecting userstream.twitter.com:443
3 Dec 10:41:02 - connecting userstream.twitter.com:443
3 Dec 10:41:02 - connecting api.twitter.com:443
3 Dec 10:41:02 - local error: Error: write ENOBUFS
3 Dec 10:41:02 - local error: Error: write ENOBUFS
3 Dec 10:41:02 - local error: Error: This socket is closed.
3 Dec 10:41:04 - connecting pbs.twimg.com:80
3 Dec 10:41:06 - connecting download3.vmware.com:443
3 Dec 10:41:10 - remote talkx.l.google.com:5222 error: Error: connect ENOBUFS
3 Dec 10:41:11 - connecting talkx.l.google.com:443
3 Dec 10:41:36 - connecting download3.vmware.com:443
3 Dec 10:41:38 - local error: Error: write ENOBUFS
3 Dec 10:41:38 - local error: Error: This socket is closed.
3 Dec 10:41:38 - local error: Error: This socket is closed.
3 Dec 10:41:38 - local error: Error: write ENOBUFS
3 Dec 10:41:38 - local error: Error: This socket is closed.
3 Dec 10:41:38 - connecting download3.vmware.com:443
3 Dec 10:42:15 - local error: Error: read ECONNRESET
3 Dec 10:42:15 - remote talk.google.com:5222 error: Error: connect ENOBUFS
3 Dec 10:42:15 - remote lp-push-server-546.lastpass.com:443 error: Error: connec
t ENOBUFS
3 Dec 10:42:15 - remote lp-push-server-546.lastpass.com:443 error: Error: connec
t ENOBUFS
3 Dec 10:42:15 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:21 - remote userstream.twitter.com:443 error: Error: connect ENOBUFS

3 Dec 10:43:21 - remote userstream.twitter.com:443 error: Error: connect ENOBUFS

3 Dec 10:43:21 - remote talkx.l.google.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:21 - remote talkx.l.google.com:5222 error: Error: connect ENOBUFS
3 Dec 10:43:21 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:21 - remote mail.google.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:21 - remote talkx.l.google.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:21 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:22 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:22 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:23 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:23 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:24 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:24 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:24 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:25 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:25 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:26 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:26 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:27 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:27 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:28 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:28 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:29 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:29 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:29 - remote github.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:29 - remote lp-push-server-546.lastpass.com:443 error: Error: connec
t ENOBUFS
3 Dec 10:43:30 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:30 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:31 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:31 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:32 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:32 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:33 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:33 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:34 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:34 - remote www.rescuetime.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:34 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:35 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:35 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:35 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:36 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:36 - remote lp-push-server-546.lastpass.com:443 error: Error: connec
t ENOBUFS
3 Dec 10:43:36 - remote mail.google.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:36 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:37 - remote mail.google.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:37 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:37 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:38 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:41 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:41 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:43 - remote userstream.twitter.com:443 error: Error: connect ENOBUFS

3 Dec 10:43:43 - remote api.twitter.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:44 - remote api.twitter.com:443 error: Error: connect ENOBUFS
3 Dec 10:43:49 - remote download3.vmware.com:443 error: Error: connect ENOBUFS
3 Dec 10:44:02 - remote talk.google.com:5222 error: Error: connect ENOBUFS
3 Dec 10:44:02 - remote talk.google.com:443 error: Error: connect ENOBUFS
3 Dec 10:44:03 - remote talkx.l.google.com:5222 error: Error: connect ENOBUFS
3 Dec 10:44:03 - remote talkx.l.google.com:443 error: Error: connect ENOBUFS
3 Dec 10:44:04 - remote plus.google.com:443 error: Error: connect ENOBUFS
3 Dec 10:44:07 - remote lp-push-server-546.lastpass.com:443 error: Error: connec
t ENOBUFS
3 Dec 10:44:08 - remote mail.google.com:443 error: Error: connect ENOBUFS
3 Dec 10:44:09 - remote mail.google.com:443 error: Error: connect ENOBUFS
3 Dec 10:44:24 - remote lp-push-server-546.lastpass.com:443 error: Error: connec
t ENOBUFS
3 Dec 10:44:28 - remote api.twitter.com:443 error: Error: connect ENOBUFS
3 Dec 10:44:28 - remote userstream.twitter.com:443 error: Error: connect ENOBUFS

3 Dec 10:44:28 - remote api.twitter.com:443 error: Error: connect ENOBUFS
3 Dec 10:44:33 - remote lp-push-server-546.lastpass.com:443 error: Error: connec
t ENOBUFS
3 Dec 10:44:33 - remote talk.google.com:443 error: Error: connect ENOBUFS

log in client :

3 Dec 22:10:37 - connecting xxx.xxx.xxx.xxx:1433
3 Dec 22:10:38 - connecting xxx.xxx.xxx.xxx:1433
3 Dec 22:10:41 - connecting xxx.xxx.xxx.xxx:1433
3 Dec 22:10:41 - connecting xxx.xxx.xxx.xxx:1433
3 Dec 22:10:43 - connecting xxx.xxx.xxx.xxx:1433
3 Dec 22:10:45 - connecting xxx.xxx.xxx.xxx:1433
3 Dec 22:10:46 - connecting xxx.xxx.xxx.xxx:1433
3 Dec 22:10:48 - connecting xxx.xxx.xxx.xxx:1433
3 Dec 22:10:48 - connecting xxx.xxx.xxx.xxx:1433
3 Dec 22:10:48 - connecting xxx.xxx.xxx.xxx:1433
3 Dec 22:10:48 - connecting xxx.xxx.xxx.xxx:1433
3 Dec 22:10:50 - connecting xxx.xxx.xxx.xxx:1433
3 Dec 22:10:52 - connecting xxx.xxx.xxx.xxx:1433
3 Dec 22:10:56 - connecting xxx.xxx.xxx.xxx:1433
3 Dec 22:10:56 - connecting xxx.xxx.xxx.xxx:1433
3 Dec 22:11:21 - connecting xxx.xxx.xxx.xxx:1433
3 Dec 22:11:21 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:21 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:21 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:21 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:21 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:21 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:21 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:21 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:21 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:21 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:21 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:21 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:21 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:22 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:22 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:22 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:22 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:22 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:22 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:22 - TypeError: Cannot call method 'destroy' of null
3 Dec 22:11:22 - TypeError: Cannot call method 'destroy' of null
chenshaoju commented 10 years ago

Sorry for my English.

Version: 1.4.2

这个现象在我这儿能比较少的见到,但是一旦见到到了就很烦人,解决方法只有重新下载多试几次。

而且似乎跟SS的加密算法无关,目前我用的是aes-128-cfb。

今天捕获到了一次,下载回来的压缩包是坏的,而且刚好被Wireshark抓包抓到了。 unnamed qq screenshot20140120161809

但是从抓包的结果来看,TCP的标志位是正常的,TTL也正常,不像是某种伪装的故意结束连接。

整个抓包过程看下来也没有见到RST。

PS:那个PSH的标志位没研究过,正常的TCP会话结束应该没这个标志位?我不太懂TCP/IP协议……

如果使用二进制对比分析下载回来的文件,可以看到文件在末尾的地方被截断了,而Chrome也直接提示下载完成,没有其他错误提示。 unnamed qq screenshot20140120162959

clowwindy commented 10 years ago

Which OS does your server use?

chenshaoju commented 10 years ago

Server is Debian 7.4,use node v0.10.5 .

EDIT: wrong type,Version is. v0.10.25