All Questions
220
questions
0
votes
0
answers
34
views
Why do C++ Thrift TLS socket operations throw exception with multiple openssl error codes?
We use Thrift C++ TLS socket for data exchanging. The openssl is built with the no-err option. We wrap every code snippet calling thrift RPC by try-catch and log the exception message. In the ...
0
votes
0
answers
31
views
Detecting that Thrift Server thread is stuck using application watchdog
I'm using Thrift for RPC in my application.
I have an internal application watchdog that I want to use also for monitoring Thrift Server thread health.
(for example to restart the thrift server in ...
0
votes
0
answers
151
views
C++ thrift server: build error "undefined reference to `vtable for MessageProcessorFactory'"
I get an errors with thrift TThreadedServer server building.
Build log:
[main] Building folder: Thrift_client_server
[build] Starting build
[proc] Executing command: /usr/bin/cmake --build "/...
0
votes
0
answers
86
views
Control the -isystem option in clang from CmakeList.txt
When trying to compile fbthrift on my mac (version info: ProductName: macOS ProductVersion: 13.4.1 BuildVersion: 22F82) using Cmake and clang++, I got a bunch of ...
1
vote
1
answer
103
views
Thrift Tserializer and TJSONProtocol
I have a question about the Tserializer and the TJSONProtocol offered by Thrift.
I use Thrift to implement a RPC between server and client written in different programming languages. I need to add new ...
0
votes
1
answer
819
views
tcmalloc allocation failures when there is free memory
I am using libtcmalloc_minimal.so.4.5.3 on Ubuntu 20. I am seeing a lot of allocation failures in the log of the form:
src/central_freelist.cc:333] tcmalloc: allocation failed 8192
However, there is ...
0
votes
0
answers
415
views
convert json string to thrift object
I have a json string which I want to convert to a thrift object.
The thrift definition is
struct Person {
1: optional string name;
}
My code is
#include <thrift/TBase.h>
#include <thrift/...
0
votes
0
answers
99
views
Thrift client type cannot be resolved c++
I'm hoping to reuse an opened thrift connection to send/recieve multiple messages/responses over the duration of a session.
The client is created in the file
Client.h
#include <iostream>
#...
0
votes
0
answers
121
views
Read each Thrift messages as a RAW data
As it is known, TCP messages can be split into several packets. I want to read all thrift messages one-by-one as blobs (without parsing it), but I want to be sure where the messages begins and ends.
...
5
votes
0
answers
255
views
Using a processor factory with TMultiplexedProcessor in thrift
I have the following architecture in my code:
1 thrift Server
1 thrift MultiplexedProcessor
several Services & associated processors/handlers
N thrift clients (several by processor/handler)
1 ...
0
votes
1
answer
571
views
C++ Make file - cannot include Thrift library
I am trying to compile my example Thrift (client-server) program. I've got Thrift installed in the path $HOME/thrift/lib, but I cannot resolve why the compiler is giving me errors, that cannot include ...
0
votes
0
answers
220
views
c++ thrift serialize multiple objects to vector<string> only end with the last object result
The code is :
std::vector<std::string*> itemDataList;
for(int i = 0 ; i<4; i++){
ctr::ZwItem zwItem;
zwItem.news = newsList[i];
zwItem.__isset.news = true;
boost::shared_ptr&...
0
votes
1
answer
786
views
conan built C++ program suddenly not linking
I am writing a project in C++ and utilizing conan + cmake to manage the dependencies.. I just now started looking to upgrade to latest versions of my client and thrift dependency (v0.13 to v0.15) but ...
0
votes
0
answers
97
views
Make TThreadPoolServer refuse further connections when all threads are used
I'm running a TThreadPoolServer with a worker count of 4 (for example):
using apache::thrift::concurrency::ThreadManager;
using apache::thrift::protocol::TBinaryProtocolFactory;
using apache::thrift::...
1
vote
1
answer
765
views
Dump apache thrift messages for debugging purposes?
Apache Thrift is one of the more popular choices for an opensource RPC frameworks (gRPC is also one that gets lot of tracktion since release into the open).
In my setup in c++ Im using a ...