diff --git a/web/CXM_multihost_http_server.anubis b/web/CXM_multihost_http_server.anubis index 1b891e4..df046cd 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, time_out) is // read with timeout { failure then println(pid + "read failed ["+to_string(result_buffer)+"]"); failure, success(ba) then @@ -938,7 +938,7 @@ define Result(Error,Word8) if nth(*connection.read_pos, *connection.buffer) is { failure then - if read_from_connexion(connection,1,600, constant_byte_array(1,0),0) is // the connection is closed after 10 minutes of inactivity + if read_from_connexion(connection,1,0, constant_byte_array(1,0),0) is { failure then /*accumulate_t2(t2_tmp);*/ error(cannot_read_from_connection), //record_dubious_connection(connection,dead_line,dos), @@ -1898,7 +1898,7 @@ public define Result(Error, ByteArray) if body_size = 0 then ok(constant_byte_array(0,0)) else if retries =< 0 then error(cannot_read_from_connection) else - if read_from_connexion(connection,body_size,60,constant_byte_array(body_size,0),0) is + if read_from_connexion(connection,body_size,0,constant_byte_array(body_size,0),0) is { failure then error(cannot_read_from_connection), success(new_bytes) then -- libgit2 0.21.4