nelo

Results 4 comments of nelo

You can try to edit the 'import' statement of the ./cmd/proxy/main.go file, import the package you need. The package imported in main.go will call the init initialization function in the...

我的client从stream中读到eof之后,已经关闭了stream,sess,以及对应的udpsession的conn,但是server那边的AcceptStream还是阻塞着的直到超时,这看起来应该与预期不符吧

但是问题server的session的关闭由谁来触发,client已经关闭了session,但是server这边的session没有人去关闭它,server这边不可能在关闭一个stream的时候就把session关闭吧,那如果不关闭,这个session就会一直存在。问题是client关闭的session也没有告知server的session。 然后client关闭了kcp的session之后,下一个client也只会新建一个新的udpsession,那么在server那边的那个session就一直阻塞了。 所以server这边的smux.Session的关闭时机是什么

ok,这个就是我想表达的疑问,看起来这里只能超时关闭