Skip to content

Instantly share code, notes, and snippets.

View postwait's full-sized avatar

Theo Schlossnagle postwait

View GitHub Profile
diff --git a/src/modules-lua/noit/module/http.lua b/src/modules-lua/noit/module/http.lua
index fd28676..af05d0f 100644
--- a/src/modules-lua/noit/module/http.lua
+++ b/src/modules-lua/noit/module/http.lua
@@ -302,7 +302,7 @@ end
function initiate(module, check)
local config = check.interpolate(check.config)
local url = config.url or 'http:///'
- local schema, host, port, uri = string.match(url, "^(https?)://([^:/]*):?([0-9]*)(/?.*)$");
+ local schema, host, sep, port, uri = string.match(url, "^(https?)://([^:/]*)(:?)([0-9]*)(/?.*)$");
diff --git a/src/eventer/eventer_epoll_impl.c b/src/eventer/eventer_epoll_impl.c
index bd38f02..5945854 100644
--- a/src/eventer/eventer_epoll_impl.c
+++ b/src/eventer/eventer_epoll_impl.c
@@ -275,14 +275,17 @@ static int eventer_epoll_impl_loop() {
__sleeptime = eventer_max_sleeptime;
+ gettimeofday(&__now, NULL);
eventer_dispatch_timed(&__now, &__sleeptime);
[epoll]
7f98ab2316da18bdec16f363a24fffa33594b4f2
31c8acea680780c5223a2dd598f57536a0709f5d
ed5eb5431dd90bfbd4f7846c63abf835255b336a
3007704e69081040c95079acf761911cf477cba3
471f1f3ef02e25a84d7c36c857ed260ae2b7ac99
[devpoll fix]
3be4875ef74a065fc23b0ef8c8749f61ec1aa984
.SUFFIXES: .lo
include Makefile.version
CC=gcc
LD=gcc
LN_S=ln -s
COPT=-O5
TAR=tar
PREFIX=/usr/local
HttpServerSession::do_io_write+0xb()
HttpSM::state_api_callout+0x2d0()
HttpSM::do_http_server_open+0x268()
HttpSM::set_next_state+0x510()
HttpSM::state_api_callout+0x2d0()
HttpSM::set_next_state+0x248()
HttpSM::do_hostdb_lookup+0x272()
HttpSM::set_next_state+0xd9f()
HttpSM::state_api_callout+0x2d0()
HttpSM::state_cache_open_read+0x188()
#include <stdio.h>
#include <stdlib.h>
static void print_line(char *name, char *name2, char *val) {
char *typename = NULL, *endptr, newval[128];
(void)strtod(val, &endptr);
if(*endptr == '\0') typename = "n";
if(NULL == typename) {
long foo, base = 10;
diff --git a/src/modules/fq_driver.c b/src/modules/fq_driver.c
index 52016ea..5636720 100644
--- a/src/modules/fq_driver.c
+++ b/src/modules/fq_driver.c
@@ -229,6 +229,7 @@ noit_fq_submit(iep_thread_driver_t *dr,
if(*payload == 'M' ||
*payload == 'S' ||
*payload == 'C' ||
+ (*payload == 'H' && payload[1] == '1') ||
(*payload == 'F' && payload[1] == '1') ||
@postwait
postwait / V
Created October 23, 2015 22:26
Verifying that +postwait is my blockchain ID. https://onename.com/postwait
; ssh garage.fabric.home.l42.org -lroot sliver
OmniOS 5.11 omnios-33c53a8 February 2016
root@garage:/root# zoneadm list -v
ID NAME STATUS PATH BRAND IP
0 global running / ipkg shared
1 eye running /zones/eye lipkg excl
2 tank running /zones/tank lipkg excl
root@garage:/root# /usr/bin/pkg update
Packages to remove: 1
Packages to update: 390
diff --git a/src/utils/mtev_log.c b/src/utils/mtev_log.c
index 9fead3e..658d5db 100644
--- a/src/utils/mtev_log.c
+++ b/src/utils/mtev_log.c
@@ -475,6 +475,16 @@ void asynch_log_ctx_free(asynch_log_ctx *tf) {
free(tf);
}
+static void
+asynch_logio_drain(asynch_log_ctx *actx) {