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

Commits (1)
  • Deucе's avatar
    Revert the last changes. · 2e1cedad
    Deucе authored
    Something weird is happening to the cryptlib session when SZ sends
    a lot of data... no real clues left.
    2e1cedad
......@@ -2458,23 +2458,14 @@ void output_thread(void* arg)
*/
if(cryptStatusError(err=cryptSetAttribute(sbbs->ssh_session, CRYPT_OPTION_NET_WRITETIMEOUT, 5)))
GCESSTR(err, node, LOG_WARNING, sbbs->ssh_session, "setting write timeout");
do {
if(cryptStatusError((err=cryptFlushData(sbbs->ssh_session)))) {
GCESSTR(err, node, LOG_WARNING, sbbs->ssh_session, "flushing data");
ssh_errors++;
if (err == CRYPT_ERROR_TIMEOUT) {
(void)cryptPopData(sbbs->ssh_session, (void *)"", 0, &err);
if (cryptStatusError(err))
GCESSTR(err, node, LOG_WARNING, sbbs->ssh_session, "popping SSH data after timeout");
else
err = CRYPT_ERROR_TIMEOUT;
}
else {
sbbs->online=FALSE;
i=buftop-bufbot; // Pretend we sent it all
}
if(cryptStatusError((err=cryptFlushData(sbbs->ssh_session)))) {
GCESSTR(err, node, LOG_WARNING, sbbs->ssh_session, "flushing data");
ssh_errors++;
if (err != CRYPT_ERROR_TIMEOUT) {
sbbs->online=FALSE;
i=buftop-bufbot; // Pretend we sent it all
}
} while (err == CRYPT_ERROR_TIMEOUT);
}
// READ = WRITE TIMEOUT HACK... REMOVE WHEN FIXED
if(cryptStatusError(err=cryptSetAttribute(sbbs->ssh_session, CRYPT_OPTION_NET_WRITETIMEOUT, 0)))
GCESSTR(err, node, LOG_WARNING, sbbs->ssh_session, "setting write timeout");
......