MCPcopy Create free account
hub / github.com/apache/thrift / peekerWorkerInterrupt

Function peekerWorkerInterrupt

lib/cpp/test/TSSLSocketInterruptTest.cpp:225–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void peekerWorkerInterrupt(shared_ptr<TTransport> tt) {
226 uint8_t buf[400];
227 try {
228 tt->read(buf, 1);
229 tt->peek();
230 } catch (const TTransportException& tx) {
231 BOOST_CHECK_EQUAL(TTransportException::INTERRUPTED, tx.getType());
232 }
233}
234
235BOOST_AUTO_TEST_CASE(test_ssl_interruptable_child_peek) {
236 shared_ptr<TSSLSocketFactory> pServerSocketFactory = createServerSocketFactory();

Callers

nothing calls this directly

Calls 3

readMethod · 0.65
peekMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected