Results issues of snail

In generated cpp code, is it ok to use 'switch' for 'oneof' in method 'SerializeWithCachedSizes', 'SerializeWithCachedSizesToArray' and 'IsInitialized '? If the field num is too many in a 'oneof',this can...

enhancement
c++

游戏开发过程中经常遇到时间相关的逻辑不好测试,有一个调时间的接口还是很方便测试的,直接修改底层获取时间的接口,没这个接口的话也可以在逻辑层绕过去,但是这个接口暴力有效。云大以为是否有必要?

skynet.lua里用到了c.command接口,这个接口的参数和返回值都是用的字符串,需要tostring和tonumber的调用,返回值又要经过sprintf。NOW和TIMEOUT的返回值是递增的,它的字符串是重用性很低的,调用次数和产生的字符串的量又是很大的,有没有必要调整一下接口的实现,跳过c.command这一层?

特殊情况下,客户端已经关闭,但是tcp连接仍是established状态,并且socket的write buffer已满,但是在buffer list仍有数据需要等待发送。这个时候调用socketdriver.close,会先处理剩余的需要发送的数据,并设置为halfclose状态,而write的返回值会一直是EAGIN,导致无法触发socket的close或error,必须等待tcp连接检查到自身断开,这个时间系统默认配置会比较久。我们现在的处理办法是逻辑不依赖于socketdriver.close是否触发close。这种情况是否要加一个接口忽略剩余数据的发送结果,或者加一个halfclose状态的timer,或者有什么其他的好办法?

### Description - Type: Bug | Question - Priority: Major --------------------------------------------------------------- ## Bug In 'mbedtls_x509_crl_parse', if ret is not 0, 'mbedtls_pem_free' may free a null pointer.

Thanks for the good tool. We are working on a cross-compile project, and we use '--sysroot' option to assign sysroot dir for gcc, but clang use '-isysroot' instead.So I've to...

wontfix
area:output