!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

661 Members
Rust152 Servers

Load older messages


SenderMessageTime
11 Aug 2025
@emilazy:matrix.orgemilyyeah ok no it's working with your patch15:37:33
@emilazy:matrix.orgemilyand not timing out15:37:38
@emilazy:matrix.orgemilyI don't understand why15:37:44
@emilazy:matrix.orgemilyyes I do15:38:17
@emilazy:matrix.orgemilyor at least I have a very good guess15:38:19
@emilazy:matrix.orgemily
[builder@virby-vm:~]$ ping google.com
PING google.com (142.250.140.113) 56(84) bytes of data.
64 bytes from wj-in-f113.1e100.net (142.250.140.113): icmp_seq=1 ttl=114 time=10.1 ms
64 bytes from wj-in-f113.1e100.net (142.250.140.113): icmp_seq=2 ttl=114 time=9.36 ms
64 bytes from wj-in-f113.1e100.net (142.250.140.113): icmp_seq=3 ttl=114 time=9.04 ms
64 bytes from wj-in-f113.1e100.net (142.250.140.113): icmp_seq=4 ttl=114 time=9.57 ms
64 bytes from wj-in-f113.1e100.net (142.250.140.113): icmp_seq=5 ttl=114 time=9.75 ms
64 bytes from wj-in-f113.1e100.net (142.250.140.113): icmp_seq=6 ttl=114 time=9.29 ms
64 bytes from wj-in-f113.1e100.net (142.250.140.113): icmp_seq=7 ttl=114 time=9.16 ms
64 bytes from wj-in-f113.1e100.net (142.250.140.113): icmp_seq=8 ttl=114 time=10.5 ms
^C
--- google.com ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7033ms
rtt min/avg/max/mdev = 9.043/9.599/10.544/0.475 ms

[builder@virby-vm:~]$ ping ipv6.google.com
PING ipv6.google.com (2a00:1450:4009:81e::200e) 56 data bytes
15:38:27
@emilazy:matrix.orgemilyI bet your changes help it fall back to v415:38:37
@tomasajt:matrix.orgTomano idea15:38:56
@tomasajt:matrix.orgToma the main change was actually specifying timeouts via with session.get(url, stream=True, timeout=(CONNECT_TIMEOUT, **READ_TIMEOUT)) 15:39:15
@tomasajt:matrix.orgTomaand also changing the task cancellation logic15:39:24
@tomasajt:matrix.orgTomabut if it's not even timing out, then IDK15:39:34
@emilazy:matrix.orgemilymy guess is that the v4 timeout fails and that causes an internal fallback to v615:39:49
@emilazy:matrix.orgemily but I haven't read requests code 15:40:00
@emilazy:matrix.orgemilyI agree that async is probably a good idea15:40:09
@tomasajt:matrix.orgTomaand by async you mean?15:40:55
@k900:0upti.meK900asyncio15:41:05
@k900:0upti.meK900Instead of manual threading15:41:10
@tomasajt:matrix.orgTomahow big is asyncio's closure?15:41:35
@tomasajt:matrix.orgTomaog its part of python15:42:00
@tomasajt:matrix.orgToma* oh its part of python15:42:04
@tomasajt:matrix.orgTomanever touched async python and wasn't really planning to15:42:37
@k900:0upti.meK900You'll probably also want httpx as an async HTTP client library15:42:39
@tomasajt:matrix.orgTomamaybe, I don't know15:42:50
@tomasajt:matrix.orgTomaIf someone wants to improve it, go ahead, I don't really write python that much15:43:25
@emilazy:matrix.orgemilycould RIIR :P15:47:18
@tomasajt:matrix.orgTomathe vendoring of the deps of the rust implementation would be interesting...15:49:42
@tomasajt:matrix.orgToma I guess we could use importCargoLock 15:49:55
@tomasajt:matrix.orgTomabut I don't think we should focus on that, we have more pressing issues, I think, e.g. lessening the cache burden, duplicated deps15:51:48
@tomasajt:matrix.orgTomaAlso, interesting sidenote: I encountered this around a month ago: https://github.com/flatpak/flatpak-builder-tools/blob/master/cargo/flatpak-cargo-generator.py Flatpak also has their own custom vendoring script...15:53:28
12 Aug 2025
@emilazy:matrix.orgemilyis it possible to build rustc with only the Cranelift backend, not LLVM?15:46:28

Show newer messages


Back to Room ListRoom Version: 6