[Dnsmasq-discuss] Cannot forward TCP query after v2.85rc1 (branch master)

Simon Kelley simon at thekelleys.org.uk
Mon Mar 22 22:05:19 UTC 2021


Many thanks. Patch applied.


Simon.


On 22/03/2021 11:49, 黎醒聪 wrote:
> Use dig to reproduce this bug, it will TCP timeout.
> 
> dig example.com <http://example.com> +tcp
> 
> It should be introduced in commit 51f7bc924cbcdeb09cbb83249b70c121d1ffa31e
> 
> I try to fix this typo and the TCP query works as usual:
> 
> Change tcp_request() in forward.c:
> 
> Wrong:
> server_send(last_server, last_server->tcpfd, packet, m + sizeof(u16),
> MSG_FASTOPEN);
> 
> Correct:
> server_send(last_server, last_server->tcpfd, packet, size + sizeof(u16),
> MSG_FASTOPEN);
> 
> Go on and fix, thanks!
> 
> Kinds regards,
> 
> Xingcong Li
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
> 




More information about the Dnsmasq-discuss mailing list