Skip to content

Instantly share code, notes, and snippets.

@dlobue
dlobue / dbhist.sh
Created March 14, 2018 19:25 — forked from outcoldman/dbhist.sh
DBHist: bash history in sqlite
# The MIT License
# SPDX short identifier: MIT
# Further resources on the MIT License
# Copyright 2017 Denis Gladkikh (https://www.outcoldman.com/en/archive/2017/07/19/dbhist/)
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
(ns riemann-config-test
(:use
midje.sweet
riemann.streams
riemann.client
riemann.email
riemann.sns
[riemann.time :only [unix-time linear-time once! every!]])
(:require
riemann.streams
@dlobue
dlobue / patch
Created November 14, 2012 18:14 — forked from anonymous/patch
diff --git a/src/libwaitress/waitress.c b/src/libwaitress/waitress.c
index ce2a254..88c309e 100644
--- a/src/libwaitress/waitress.c
+++ b/src/libwaitress/waitress.c
@@ -537,6 +537,10 @@ static WaitressReturn_t WaitressGnutlsRead (void *data, char *buf,
ssize_t ret = gnutls_record_recv (waith->request.tlsSession, buf, size);
if (ret < 0) {
+ if (ret == -9 || ret == GNUTLS_E_PREMATURE_TERMINATION) {
+ *retSize = 0;