Coder Social home page Coder Social logo

Comments (6)

starwar6160 avatar starwar6160 commented on June 11, 2024

我也是这个问题,具体错误如下。
但是同样是美国的另一个vps,线路比这个还差,没有这个问题。
从日志上看,我估计当该vps线路较差,丢包率等问题导致连接中断,中断次数多了以后某个固定大小数据结构溢出导致了这个问题。可能需要考虑国内恶劣的网络线路,放宽这个限制或者不限制该数据结构的大小,哪怕因此造成最后client崩了,也比现在很快就崩了无法联网要好得多。大家用这个更重视稳定性,网速,对于内存等资源占用没那么在意的。
C:\Tools\goflyway>goflyway.exe -k=MYPASSWORD -up cf://node1.myvps.com:2082 -p 8103
2020-09-04 22:11:01.237 CST,main.go:267, INFO ,goflyway 181021015134
2020-09-04 22:11:01.321 CST,main.go:436, INFO ,Upstream config: cf://node1.myvps.com:2082
2020-09-04 22:11:01.321 CST,main.go:416, INFO ,Client 7bfb660 started: you->0.0.0.0:8103->cloudflare->node1.myvps.com:2082
2020-09-04 22:11:01.321 CST,main.go:412, INFO ,Web console started at 127.0.0.1:8113
2020-09-04 22:12:47.745 CST,io.go:84, ERROR ,"Bridge: read [::1]:61978, Software caused connection abort"
2020-09-04 22:12:51.847 CST,io.go:68, ERROR ,"Bridge: write [::1]:61986, Software caused connection abort"
2020-09-04 22:17:49.977 CST,io.go:84, ERROR ,"Bridge: read [::1]:62671, Software caused connection abort"
2020-09-04 22:17:50.238 CST,io.go:84, ERROR ,"Bridge: read [::1]:62673, Software caused connection abort"
2020-09-05 08:30:50.189 CST,io.go:84, ERROR ,"Bridge: read [::1]:63360, Software caused connection abort"
2020-09-05 08:30:50.205 CST,io.go:84, ERROR ,"Bridge: read [::1]:63359, Software caused connection abort"
2020-09-05 08:30:50.206 CST,io.go:84, ERROR ,"Bridge: read [::1]:63385, Software caused connection abort"
2020-09-05 08:30:50.209 CST,io.go:84, ERROR ,"Bridge: read [::1]:63386, Software caused connection abort"
2020-09-05 08:30:50.222 CST,io.go:84, ERROR ,"Bridge: read [::1]:63374, Software caused connection abort"
2020-09-05 08:30:50.226 CST,io.go:84, ERROR ,"Bridge: read [::1]:63378, Software caused connection abort"
2020-09-05 08:30:50.230 CST,io.go:84, ERROR ,"Bridge: read [::1]:63362, Software caused connection abort"
2020-09-05 08:30:50.241 CST,io.go:84, ERROR ,"Bridge: read [::1]:63396, Software caused connection abort"
2020-09-05 08:30:50.242 CST,io.go:84, ERROR ,"Bridge: read [::1]:63369, Software caused connection abort"
2020-09-05 08:30:50.250 CST,io.go:84, ERROR ,"Bridge: read [::1]:63389, Software caused connection abort"
2020-09-05 08:30:50.251 CST,io.go:84, ERROR ,"Bridge: read [::1]:63363, Software caused connection abort"
2020-09-05 08:30:50.252 CST,io.go:84, ERROR ,"Bridge: read [::1]:63394, Software caused connection abort"
2020-09-05 08:30:50.262 CST,io.go:84, ERROR ,"Bridge: read [::1]:63388, Software caused connection abort"
2020-09-05 08:30:50.276 CST,io.go:84, ERROR ,"Bridge: read [::1]:63395, Software caused connection abort"
2020-09-05 08:30:50.278 CST,io.go:84, ERROR ,"Bridge: read [::1]:63397, Software caused connection abort"
2020-09-05 08:30:50.282 CST,io.go:84, ERROR ,"Bridge: read [::1]:63361, Software caused connection abort"
2020-09-05 08:30:50.308 CST,io.go:84, ERROR ,"Bridge: read [::1]:63391, Software caused connection abort"
2020-09-05 08:30:50.314 CST,io.go:84, ERROR ,"Bridge: read [::1]:63392, Software caused connection abort"
2020-09-05 08:30:50.317 CST,io.go:84, ERROR ,"Bridge: read [::1]:63372, Software caused connection abort"
2020-09-05 08:30:50.339 CST,io.go:84, ERROR ,"Bridge: read [::1]:63358, Software caused connection abort"
2020-09-05 08:30:50.459 CST,io.go:84, ERROR ,"Bridge: read [::1]:63398, Software caused connection abort"
2020-09-05 08:30:50.805 CST,io.go:84, ERROR ,"Bridge: read [::1]:63371, Software caused connection abort"
2020-09-05 08:30:50.845 CST,io.go:84, ERROR ,"Bridge: read [::1]:63373, Software caused connection abort"
2020-09-05 08:30:50.895 CST,io.go:84, ERROR ,"Bridge: read [::1]:63381, Software caused connection abort"
2020-09-05 08:30:51.715 CST,io.go:84, ERROR ,"Bridge: read [::1]:63645, Software caused connection abort"
2020-09-05 08:30:51.722 CST,io.go:84, ERROR ,"Bridge: read [::1]:63647, Software caused connection abort"
2020-09-05 08:31:04.014 CST,io.go:84, ERROR ,"Bridge: read [::1]:63375, Software caused connection abort"
2020-09-05 08:31:04.621 CST,io.go:84, ERROR ,"Bridge: read [::1]:63370, Software caused connection abort"
2020-09-05 08:31:13.332 CST,io.go:84, ERROR ,"Bridge: read [::1]:63735, Software caused connection abort"
2020-09-05 08:31:14.603 CST,io.go:84, ERROR ,"Bridge: read [::1]:63741, Software caused connection abort"
2020-09-05 08:36:41.234 CST,io.go:84, ERROR ,"Bridge: read [::1]:64390, Software caused connection abort"
panic: runtime error: slice bounds out of range

goroutine 1735 [running]:
github.com/coyove/goflyway/proxy.(*io_t).Copy(0xc04215e1a0, 0x119c8a8, 0xc0420942a0, 0x17f0000, 0xc04213c058, 0x6dda4eaf8ee463ae, 0x9f89065fbe18f61e, 0x0, 0x302000000, 0x0, ...)
/var/www/golib/src/github.com/coyove/goflyway/proxy/io.go:258 +0xa00
github.com/coyove/goflyway/proxy.(*io_t).Bridge.func1(0xc04215e1a0, 0x91d0e0, 0xc0420942a0, 0x91d260, 0xc04213c058, 0x6dda4eaf8ee463ae, 0x9f89065fbe18f61e, 0xc04214e120, 0x0, 0x302000000)
/var/www/golib/src/github.com/coyove/goflyway/proxy/io.go:67 +0xdd
created by github.com/coyove/goflyway/proxy.(*io_t).Bridge
/var/www/golib/src/github.com/coyove/goflyway/proxy/io.go:66 +0x15e

from goflyway.

coyove avatar coyove commented on June 11, 2024

cf://协议换成ws://直连服务器能成功吗

from goflyway.

starwar6160 avatar starwar6160 commented on June 11, 2024

from goflyway.

aikunzhe avatar aikunzhe commented on June 11, 2024

确实是几分钟就报错了

from goflyway.

coyove avatar coyove commented on June 11, 2024

看来cf启用了permessage-deflate的ws压缩标准,导致以前写的ws解析代码出错了。

from goflyway.

sunhf-git avatar sunhf-git commented on June 11, 2024

permessage-deflate的ws压缩标准

有什么办法能避免这个问题吗, 仍然想继续使用cdn.

from goflyway.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.