Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit 3489c6cc authored by deuce's avatar deuce
Browse files

Add a terrible hack to see if the TLS POST issue is what I think it is.

parent 4024e51a
......@@ -598,12 +598,14 @@ static BOOL session_check(http_session_t *session, BOOL *rd, BOOL *wr, unsigned
BOOL lcl_rd;
BOOL *rd_ptr = rd?rd:&lcl_rd;
char buf;
if (session->is_tls) {
if(rd) {
if(session->tls_pending) {
// This MSG_PEEK is a terrible hack. :(
if(session->tls_pending || sess_recv(session, &buf, 1, MSG_PEEK) == 1) {
*rd = TRUE;
return TRUE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment