Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org 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 ...@@ -598,12 +598,14 @@ static BOOL session_check(http_session_t *session, BOOL *rd, BOOL *wr, unsigned
BOOL ret = FALSE; BOOL ret = FALSE;
BOOL lcl_rd; BOOL lcl_rd;
BOOL *rd_ptr = rd?rd:&lcl_rd; BOOL *rd_ptr = rd?rd:&lcl_rd;
char buf;
if (session->is_tls) { if (session->is_tls) {
if(wr) if(wr)
*wr=1; *wr=1;
if(rd) { 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; *rd = TRUE;
return 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