Giter Site home page Giter Site logo

Comments (9)

chenBright avatar chenBright commented on June 12, 2024

是不是可以使用 #2547 notify_on_success特性,在写入成功后,通过id_wait结束rpc?

from incubator-brpc.

jiangdongzi avatar jiangdongzi commented on June 12, 2024

是不是可以使用 #2547 notify_on_success特性,在写入成功后,通过id_wait结束rpc?

结束rpc并不是关闭socket吧?

from incubator-brpc.

chenBright avatar chenBright commented on June 12, 2024

我理解这种没有响应的请求,在socket写完请求包就可以认为成功了。

设置notify_on_success后,socket写完请求包,就会调用id_wait的回调函数,这时候error_code是0,表示写入成功,就可以认为rpc调用成功了吧。

from incubator-brpc.

jiangdongzi avatar jiangdongzi commented on June 12, 2024

我理解这种没有响应的请求,在socket写完请求包就可以认为成功了。

设置notify_on_success后,socket写完请求包,就会调用id_wait的回调函数,这时候error_code是0,表示写入成功,就可以认为rpc调用成功了吧。

对, 写入成功就表示rpc成功了, 调用id_wait回调会关闭对应的socket和fd么

from incubator-brpc.

chenBright avatar chenBright commented on June 12, 2024

设置notify_on_success后,不会

from incubator-brpc.

chenBright avatar chenBright commented on June 12, 2024

related PR: #2171

from incubator-brpc.

jiangdongzi avatar jiangdongzi commented on June 12, 2024

设置notify_on_success后,不会

如果直接返回, 那么回包后controller, request, response析构了怎么办, 还是说只支持不回包的请求?

from incubator-brpc.

chenBright avatar chenBright commented on June 12, 2024

目前只支持不回包的请求。

什么场景需要支持回包的?

from incubator-brpc.

jiangdongzi avatar jiangdongzi commented on June 12, 2024

目前只支持不回包的请求。

什么场景需要支持回包的?

有时候想完全忽略回包, 但是还是需要自己new cntl, new repsonse, 还要在 done Closure中 删除cntl, response

from incubator-brpc.

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.