Skip to content

Instantly share code, notes, and snippets.

#include <event2/bufferevent.h>
#include <event2/buffer.h>
#include <event2/event.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
struct ctx
@azat
azat / gist:8554aaefce880cc37841dd9141b00bd9
Created December 31, 2018 13:36
linux-4.20-dmesg.snd_hda_soc.log
Dec 30 19:29:38 WARNING: CPU: 0 PID: 22941 at sound/hda/hdac_component.c:327 snd_hdac_acomp_exit+0x69/0x90 [snd_hda_core]
Dec 30 19:29:38 Modules linked in: snd_hda_intel snd_usb_audio snd_usbmidi_lib snd_rawmidi snd_seq_device cdc_ether usbnet r8152 mii hid_apple hid_generic usbhid hid thunderbolt tun bluetooth ecdh_generic nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype xt_conntrack br_netfilter iptable_mangle xt_CHECKSUM iptable_nat joydev mousedev rmi_smbus rmi_core ipt_MASQUERADE nf_nat_ipv4 nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c xt_tcpudp overlay bridge stp llc iptable_filter ccm algif_aead cbc snd_soc_hdac_hdmi des_generic zram arc4 lz4 lz4_compress cmac msr md4 algif_hash i915 snd_soc_dmic snd_soc_skl(-) iwlmvm snd_soc_skl_ipc snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi mac80211 snd_soc_core snd_compress iTCO_wdt ac97_bus kvmgt iTCO_vendor_support intel_rapl snd_pcm_dmaengine vfio_mdev mdev x86_pkg_temp_thermal uvcvideo int
diff --git a/lib/utils/restClient.cpp b/lib/utils/restClient.cpp
index 96f25b82..e5472a94 100644
--- a/lib/utils/restClient.cpp
+++ b/lib/utils/restClient.cpp
@@ -212,6 +212,7 @@ bool restClient::make_request(std::string path,
const unsigned short port,
const int retries,
const int timeout) {
+ struct bufferevent* bev = nullptr;
struct evhttp_connection* evcon = nullptr;
#include <iostream>
#include <event2/event.h>
#include <event2/http.h>
#include <event2/thread.h>
#include <thread>
#include <atomic>
using namespace std;
azat:.../libevent-extras (master)$ ./tools/vagrant-tests.py --workers 2 --root ../libevent-2.1 --no-email --reset-on-finish --no-lock --verbose
2019-02-03 19:00:11,788: DEBUG: vagrant-tests: Args: ['./tools/vagrant-tests.py', '--workers', '2', '--root', '../libevent-2.1', '--no-email', '--reset-on-finish', '--no-lock', '--verbose']
2019-02-03 19:00:11,788: INFO: vagrant-tests: root=../libevent-2.1
2019-02-03 19:00:11,788: DEBUG: cmd: Popen(['git', 'log', '--no-show-signature', '--oneline', '-1'], cwd=/src/le/libevent-2.1, universal_newlines=False, shell=None)
2019-02-03 19:00:11,792: DEBUG: cmd: Popen(['git', 'describe'], cwd=/src/le/libevent-2.1, universal_newlines=False, shell=None)
2019-02-03 19:00:11,797: INFO: vagrant-tests: root last commit=5a26e7bd test/dns: in solaris under EMFILE the error is EAI_FAIL (release-2.1.8-stable-207-g5a26e7bd)
2019-02-03 19:00:17,007: DEBUG: vagrant-tests: box[name=ubuntu] from 'vagrant status'
2019-02-03 19:00:17,007: DEBUG: vagrant-tests: box[name=freebsd] from 'vagrant
/**
* Check for raising a signal before looping:
* - OSX 10.14 -- *SIGALARM* (with USE__RAISE/USE__PTHREAD_KILL), exit cleanly with USE__KILL
* - OSX 10.11 -- exit cleanly (with USE__RAISE/USE__PTHREAD_KILL/USE__KILL)
*/
#include <sys/event.h>
#include <unistd.h>
#include <assert.h>
#include <signal.h>
#define _GNU_SOURCE
#include <stdlib.h>
#include <dlfcn.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/tcp.h>
#include <netinet/in.h>
static size_t tcp_nodelay_count;
static size_t tcp_nodelay_errors;
# Maintainer: Anatol Pomozov <[email protected]>
# Contributor: Joel Teichroeb <[email protected]>
# Contributor: Jonas Heinrich <[email protected]>
pkgname=folly-git
pkgver=2019.03.18.00.r19.g4fe39e0f
pkgrel=1
pkgdesc='Folly is an open-source C++ library developed and used at Facebook'
arch=(i686 x86_64)
url='https://github.com/facebook/folly'
# Completion for bash, that support:
# - bin --help
# - tinytest --list-tests
#
# Execute as:
# source scripts/bash_completion
#
# Also you may like:
# bind "set completion-ignore-case on"
# bind "set show-all-if-ambiguous on"