Skip to content

Instantly share code, notes, and snippets.

@brian-pane
brian-pane / gist:07aa0a09b33b62dccad065aaf825d9a2
Created March 10, 2019 17:32
Buffer::Instance::linearize calls in Envoy
source/extensions/filters/network/mongo_proxy/bson_impl.cc: void* mem = data.linearize(sizeof(int32_t));
source/extensions/filters/network/mongo_proxy/bson_impl.cc: void* mem = data.linearize(sizeof(uint8_t));
source/extensions/filters/network/mongo_proxy/bson_impl.cc: void* mem = data.linearize(out_len);
source/extensions/filters/network/mongo_proxy/bson_impl.cc: char* start = reinterpret_cast<char*>(data.linearize(index + 1));
source/extensions/filters/network/mongo_proxy/bson_impl.cc: void* mem = data.linearize(sizeof(int64_t));
source/extensions/filters/network/mongo_proxy/bson_impl.cc: char* start = reinterpret_cast<char*>(data.linearize(length));
source/extensions/filters/network/mongo_proxy/bson_impl.cc: char* start = reinterpret_cast<char*>(data.linearize(length));
source/extensions/filters/network/dubbo_proxy/buffer_helper.h: void* linearize(uint32_t size) override {
source/extensions/filters/network/dubbo_proxy/buffer_helper.h: uint8_t* p = static_cast<uint8_t*>(underlying_.linearize(posi
@brian-pane
brian-pane / gist:9f659c4ea84d4ea7810fbf36f1bf0a3e
Created March 7, 2019 21:13
ssh setup for Ubuntu 18 on VirtualBox on macOS
My configuration to run Ubuntu on VirtualBox on macOS with both NAT and host-only network interfaces.
Overview
========
The Ubuntu guest has two network interfaces: a primary NAT interface to enable it to reach
the Internet (so things like apt will work) and a second, host-only interface to support SSH
from the macOS host.
Setup Steps
===========
@brian-pane
brian-pane / test.log
Created December 18, 2018 03:23
Trace output for envoyproxy/envoy issue 5136
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //test/integration:http2_upstream_integration_test
-----------------------------------------------------------------------------
Note: Google Test filter = IpVersions/Http2UpstreamIntegrationTest.UpstreamConnectionCloseWithManyStreams/IPv6
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from IpVersions/Http2UpstreamIntegrationTest
[ RUN ] IpVersions/Http2UpstreamIntegrationTest.UpstreamConnectionCloseWithManyStreams/IPv6
[2018-12-18 03:16:10.231][771224][info][testing] [test/integration/fake_upstream.cc:360] starting fake server on port 63525. Address version is v6
[2018-12-18 03:16:10.233][771224][debug][misc] [test/config/utility.cc:156] No capture path set for tests