wwbmmm commented on issue #1731:
URL: 
https://github.com/apache/incubator-brpc/issues/1731#issuecomment-1082680858


   
pappend_from_file_descriptor里只readv一次,是因为事先根据max_count分配了足够的内存空间,所以可以一次性把缓存区中的数据读出。
   而SSL没有提供readv机制,所以在未读够max_count字节时,还是需要循环读取直到读不到数据或读取错误。
   这里问题在于读取错误的时候是否要返回已读取的数据,注释里提到 `Other errors are 
fatal`,在出现fatal错误的时候,如果返回成功,是否会掩盖问题?是不是可以分析一下`error:0606506D:digital envelope 
routines:EVP_DecryptFinal_ex:wrong final block length`这个错误的原因,看能否从根本上解决问题


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to