Jose Celano

Results 345 comments of Jose Celano

The test was ignored because it's [failing on the GitHub runner](https://github.com/torrust/torrust-tracker/actions/runs/7301807124/job/19899211291?pr=550#step:8:417): ```s failures: ---- servers::api::v1::contract::configuration::should_fail_with_ssl_enabled_and_bad_ssl_config stdout ---- ---- servers::api::v1::contract::configuration::should_fail_with_ssl_enabled_and_bad_ssl_config stderr ---- panic did not contain expected string panic message: `"`spawn_local`...

Hi @da2ce7 after merging https://github.com/torrust/torrust-tracker/pull/553 now it's also failing locally.

> Hello, @josecelano > > Is the ip parameter could be supported as an option? > > see here https://wiki.theory.org/BitTorrent_Tracker_Protocol > > `http://some.tracker.com:999/announce ?info_hash=12345678901234567890 &peer_id=ABCDEFGHIJKLMNOPQRST &ip=255.255.255.255 &port=6881 &downloaded=1234 &left=98765 &event=stopped`...

Using the `Forwarded` header instead of `X-Forwarded-For`: https://www.nginx.com/resources/wiki/start/topics/examples/forwarded/

Thank you, @nyacat! Regarding the `strip=true` option, I removed it some months ago because of this https://github.com/torrust/torrust-tracker/commit/3098ed2c59c420167797b3a6f697c697d440c0f2. I think that's the flag that makes the binary bigger. If that's the...

I can confirm that `strip = true` is the option that reduces the size the most: With `strip = true`: ```s $ ls -lah target/release/torrust-tracker -rwxrwxr-x 2 josecelano josecelano 11M...

It seems it was [removed on the migration to Hyper 1.0.](https://github.com/programatik29/axum-server/pull/93).

I'm trying to determine how to set the timeout with the new version. It seems Hyper 1.0 supports adding the timeout. I have been able to make at least Hyper...

I've managed to remove the panic with the following: ```rust let mut server = axum_server::from_tcp(socket); server.http_builder().http1().timer(TokioTimer::new()); server.http_builder().http1().header_read_timeout(Duration::from_secs(5)); server.http_builder().http2().keep_alive_timeout(Duration::from_secs(5)); server .handle(handle) .serve(router.into_make_service_with_connect_info::()) .await .expect("Axum server crashed.") ``` But it's not working.

I have created an example here: https://github.com/josecelano/axum-server-timeout I've only been able to set a timeout for sending the headers with `header_read_timeout`. But I want the server to close the connection...