On 2024/08/02 14:31, Lucas Gabriel Vuotto wrote:
> On Fri, Aug 02, 2024 at 01:25:24PM GMT, Lucas Gabriel Vuotto wrote:
> > 
> > btw, decided to attempt that after rereading your debug attempts in
> > Reddit. I believe that you keep looking at the loop in curlThreadFunc
> > because that's the way that thread works, while taking a look at another
> > thread showed it was attempting a read that came from natpmp.
> > 
> > iirc, I started experiencing it around mid-May, while the reddit post is
> > from mid-April. transmission-daemon runs in a machine that runs -current
> > and is updated on a weekly basis.
> 
> The only thing that doesn't make sense is why is this started being
> noticeable somewhere around April / May. I'm pretty sure I started
> experiencing roughly a month after I saw Josh comment about it.

Does that match with when I updated libnatpmp? Or is that a bit earlier.

: PatchSet 15
: Date: 2024/02/29 14:01:36
: Author: sthen
: Branch: HEAD
: Tag: (none)
: Log:
: update to libnatpmp-20240116

> diff 0d344cb42a7eca64820d544cfcf71f41eb47b835 
> 1434c3b0051be5d20df5fc2c707b8160665148ca

LGTM, would you mind doing a PR upstream please?
https://github.com/miniupnp/libnatpmp/pulls

> commit - 0d344cb42a7eca64820d544cfcf71f41eb47b835
> commit + 1434c3b0051be5d20df5fc2c707b8160665148ca
> blob - 43b62e7c1a177a807fa1566b1e12a546b2df3456
> blob + 074bf4f845cb794f6c2e239d9c785ba10541f881
> --- net/miniupnp/libnatpmp/Makefile
> +++ net/miniupnp/libnatpmp/Makefile
> @@ -2,6 +2,7 @@ COMMENT =     NAT Port Mapping Protocol client library
>  
>  DIST_TUPLE = github miniupnp libnatpmp 
> f2433bec24ca3d3f22a8a7840728a3ac177f94ba .
>  PKGNAME =    libnatpmp-20240116
> +REVISION =   0
>  
>  SHARED_LIBS =        natpmp 0.1
>  
> blob - /dev/null
> blob + 44666d262d9e571b1009c4ed8ae8ebb4a72d761d (mode 644)
> --- /dev/null
> +++ net/miniupnp/libnatpmp/patches/patch-getgateway_c
> @@ -0,0 +1,16 @@
> +Handle non-zero rtables.
> +
> +Index: getgateway.c
> +--- getgateway.c.orig
> ++++ getgateway.c
> +@@ -269,6 +269,10 @@ int getdefaultgateway(in_addr_t *addr)
> +   rtm.rtm_seq = ++seq;
> +   rtm.rtm_addrs = rtm_addrs;
> + 
> ++#ifdef __OpenBSD__
> ++  rtm.rtm_tableid = getrtable();
> ++#endif
> ++
> +   so_dst.sa_family = AF_INET;
> +   so_dst.sa_len = sizeof(struct sockaddr);
> +   so_mask.sa_family = AF_INET;
> 

Reply via email to