Commit 670363307858e24bc2019f4b4e85a233646aae3c

Authored by David RENÉ
1 parent 60bb2cdc

remove the timeout in read_from_connexion because the anubis behaviour has changed.

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
web/CXM_multihost_http_server.anubis
@@ -902,7 +902,7 @@ define Maybe(ByteArray) @@ -902,7 +902,7 @@ define Maybe(ByteArray)
902 else 902 else
903 with t0 = (UTime) unow, 903 with t0 = (UTime) unow,
904 //if unow > dead_line then record_dubious_connection(connection,dead_line,dos) else 904 //if unow > dead_line then record_dubious_connection(connection,dead_line,dos) else
905 - if read(connection.conn, 32768, time_out) is // the connection is closed after 10 minutes of inactivity 905 + if read(connection.conn, 32768, time_out) is // read with timeout
906 { 906 {
907 failure then println(pid + "read failed ["+to_string(result_buffer)+"]"); failure, 907 failure then println(pid + "read failed ["+to_string(result_buffer)+"]"); failure,
908 success(ba) then 908 success(ba) then
@@ -938,7 +938,7 @@ define Result(Error,Word8) @@ -938,7 +938,7 @@ define Result(Error,Word8)
938 if nth(*connection.read_pos, *connection.buffer) is 938 if nth(*connection.read_pos, *connection.buffer) is
939 { 939 {
940 failure then 940 failure then
941 - if read_from_connexion(connection,1,600, constant_byte_array(1,0),0) is // the connection is closed after 10 minutes of inactivity 941 + if read_from_connexion(connection,1,0, constant_byte_array(1,0),0) is
942 { 942 {
943 failure then /*accumulate_t2(t2_tmp);*/ error(cannot_read_from_connection), 943 failure then /*accumulate_t2(t2_tmp);*/ error(cannot_read_from_connection),
944 //record_dubious_connection(connection,dead_line,dos), 944 //record_dubious_connection(connection,dead_line,dos),
@@ -1898,7 +1898,7 @@ public define Result(Error, ByteArray) @@ -1898,7 +1898,7 @@ public define Result(Error, ByteArray)
1898 if body_size = 0 then ok(constant_byte_array(0,0)) else 1898 if body_size = 0 then ok(constant_byte_array(0,0)) else
1899 if retries =< 0 then error(cannot_read_from_connection) else 1899 if retries =< 0 then error(cannot_read_from_connection) else
1900 1900
1901 - if read_from_connexion(connection,body_size,60,constant_byte_array(body_size,0),0) is 1901 + if read_from_connexion(connection,body_size,0,constant_byte_array(body_size,0),0) is
1902 { 1902 {
1903 failure then error(cannot_read_from_connection), 1903 failure then error(cannot_read_from_connection),
1904 success(new_bytes) then 1904 success(new_bytes) then