diff --git a/mail/smtp_client.anubis b/mail/smtp_client.anubis index a18072b..bfc1ca1 100644 --- a/mail/smtp_client.anubis +++ b/mail/smtp_client.anubis @@ -402,7 +402,7 @@ define Maybe(One) Int buffer_start_time, (LogLevel, String) -> One logger )= - if write( target , buffer) is + if write( target , buffer, 10) is { failure then failure, success(nb_write) then diff --git a/net_services/send_file.anubis b/net_services/send_file.anubis index 4ffea70..96e0d1a 100644 --- a/net_services/send_file.anubis +++ b/net_services/send_file.anubis @@ -43,9 +43,8 @@ define Maybe(One) with read_size = min(65536, left_read), if read(src_file, read_size, 10) is { - error then logger(logError, "send_file_state read error");failure, - timeout then logger(logError, "send_file_state timeout");failure, - ok(buffer)then + failure then logger(logError, "send_file_state read error");failure, + success(buffer) then with data_msg = message(_CXM_FTP_DATA), if add_raw(data_msg, "Data", buffer) is { diff --git a/web/CXM_multihost_http_server.anubis b/web/CXM_multihost_http_server.anubis index 1b891e4..12e6a7c 100644 --- a/web/CXM_multihost_http_server.anubis +++ b/web/CXM_multihost_http_server.anubis @@ -902,7 +902,7 @@ define Maybe(ByteArray) else with t0 = (UTime) unow, //if unow > dead_line then record_dubious_connection(connection,dead_line,dos) else - if read(connection.conn, 32768, time_out) is // the connection is closed after 10 minutes of inactivity + if read(connection.conn, 32768, 0) is // the connection is closed after 10 minutes of inactivity { failure then println(pid + "read failed ["+to_string(result_buffer)+"]"); failure, success(ba) then -- libgit2 0.21.4