Last 12 weeks · 920 commits
4 of 6 standards met
Currently the dependency between the and thrift libs is implicit, which on some platforms can cause the latter to be unbuilt for some targets, resulting in errors such as: See https://github.com/NixOS/nixpkgs/pull/547897. One could explicitly declare all cross-dependencies between thrift libraries as well, but that seems like a bigger hassle to maintain. Given how things mostly work as-is, let's go with the minimum required change.
Class HeaderClientChannel has a method to set CloseCallback when connection closed, which requires a naked pointer. The callback will be called in asynchronously. By normal thought, in this case, for an asynchronous callback object, developer will new a callback object, then pass the naked pointer to then function, and hope class HeaderClientChannel take the ownership, and free the callback object if necessary. But I found in the HeaderClientChannel class, in the function void HeaderClientChannel::messageChannelEOF(), after called closeCallback_->channelClosed(), then, the class assigns nullptr to the pointer: closeCallback_ = nullptr; In this case, memory leaking is occurred. But I think in the asynchronous case, developer haven't the responsibility to holder a callback and free them. And no any note to say, need to delete this in the function channelClosed().
switches on , whose type is a class with an . Older Clang (e.g. Apple Clang 15 / Xcode 15) rejects the labels of such class-type switches with: Switch on (the public member) instead, so every switch operates on the plain enum. No behavioral change; case labels are unchanged. Builds unchanged on newer Clang/GCC and fixes older Clang.
Repository: facebook/fbthrift. Description: Facebook's branch of Apache Thrift, including a new C++ server. Stars: 2696, Forks: 644. Primary language: C++. Languages: C++ (62.1%), Python (9.4%), Thrift (9.2%), Java (8.1%), Rust (2.7%). License: Apache-2.0. Latest release: v2020.08.24.00 (5y ago). Open PRs: 8, open issues: 47. Last activity: 2h ago. Community health: 75%. Top contributors: Mizuchi, iahs, yfeldblum, echistyakov, thedavekwon, vitaut, praihan, ahilger, hchokshi, aristidisp and others.