Joway
Joway
@Hchenn 如果用 Peek 来解析,只能用下面这种方法: ``` var skip int for { buf := reader.Peek(reader.Len()) n := bytes.IndexBytes(buf[skip:], '\n') if n < 0 { skip += len(buf[skip:]) } } ``` 一方面实现起来比较晦涩,另一方面由于真实的数据是一个二维数组,而如果等 peek...
@da-tai not yet, but is developing.
@loveyana there is no specific time. but you also can use "crypto/tls" lib with netpoll.Connection what @lazychanger has listed below.
@ym2049 It should be refactor totally to support TLS with an elegant way. Now still have no time to do this.
连接少的场景其实都没有设置这个的必要,所以考虑的场景至少也是上万连接的场景。而上万连接对象时,维护 idle time 的代价可能会非常高。这也是为什么一直没实现的原因。 即便用go timer,上万的timer在go runtime中,且还需要不停modtimer(因为连接会有新读写),代价也是很大的。
@manchurio 我们内部调研,uring 对 RPC 场景的改善很少,尤其是小包场景。如果netpoll支持 uring,代码改造挺大,收益却不大,所以目前暂缓在现有代码基础上,支持 uring 了。但是会在后面的大版本重构中,把这个功能考虑进来。
@someview 包越大越有优势。
golang cannot let user side codes to imlement the thread-per-core architecture. and cgo is not a good idea to be used in high performance use-case. @hiqsociety
@KeKe-Li socket5协议还是基于TCP之上的应用层协议,netpoll 不会去实现应用层协议。
这个需求可以考虑在后面的版本中加上