Skip to content

Instantly share code, notes, and snippets.

View postwait's full-sized avatar

Theo Schlossnagle postwait

View GitHub Profile
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()
.SUFFIXES: .lo
include Makefile.version
CC=gcc
LD=gcc
LN_S=ln -s
COPT=-O5
TAR=tar
PREFIX=/usr/local
[epoll]
7f98ab2316da18bdec16f363a24fffa33594b4f2
31c8acea680780c5223a2dd598f57536a0709f5d
ed5eb5431dd90bfbd4f7846c63abf835255b336a
3007704e69081040c95079acf761911cf477cba3
471f1f3ef02e25a84d7c36c857ed260ae2b7ac99
[devpoll fix]
3be4875ef74a065fc23b0ef8c8749f61ec1aa984
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);
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]*)(/?.*)$");
@postwait
postwait / gist:7c9372685a7126c8ce49
Created December 9, 2014 19:24
diff usr/src/cmd/mdb/common/modules/libumem/umem.c
--- umem.c Wed Nov 27 16:09:41 2013
+++ /var/tmp/umem.c Tue Dec 9 19:22:36 2014
@@ -2363,7 +2363,7 @@
else
mdb_printf("%3d", i);
- mdb_printf(" %0?p %0?p %16llx %0?p\n", addr, b->bc_addr,
+ mdb_printf(" %0?p %0?p %16llx %0?l#r\n", addr, b->bc_addr,
b->bc_timestamp, b->bc_thread);
@postwait
postwait / gist:84c141c90e596debf692
Created October 16, 2014 18:34
smartos workie?
diff --git a/src/LuaJIT/src/lj_alloc.c b/src/LuaJIT/src/lj_alloc.c
index cd8dfc1..992d792 100644
--- a/src/LuaJIT/src/lj_alloc.c
+++ b/src/LuaJIT/src/lj_alloc.c
@@ -177,7 +177,7 @@ static LJ_AINLINE int CALL_MUNMAP(void *ptr, size_t size)
#if LJ_64
/* 64 bit mode needs special support for allocating memory in the lower 2GB. */
-#if defined(MAP_32BIT)
+#if defined(MAP_32BIT) && !defined(BROKEN_MMAP_HINTS)
<nodes write_copies="3">
<node id="b7cc243f-85fa-4031-b69e-d6b9ed537093"
address="192.168.13.70"
apiport="8112"
port="8112"
weight="85"/>
<node id="696fc43d-4cc8-4209-97da-f2ede7dcbc45"
address="192.168.13.71"
apiport="8112"
port="8112"
#!/bin/sh
OCTET=$1
IFACE=$2
sed -e "s/@@OCTET@@/$OCTET/g" -e "s/@@IFACE@@/$IFACE/g;" < sp.json > sp.tmp.json
curl -s -H'Accept: application/json' -H'X-Circonus-Auth-Token: derp-derpderp' -H'X-Circonus-App-Name: curl' -XPOST -Tsp.tmp.json 'https://api.circonus.com/check_bundle?duplicate=1'
{
"status": "active",
"target": "192.168.0.@@OCTET@@",
"timeout": 10,
"metrics": [
{
"status": "active",
"name": "in_errors",
"type": "numeric"
},