Thanks Ian, https://github.com/golang/go/issues/71939.

On Monday, 24 February 2025 at 20:54:27 UTC Ian Lance Taylor wrote:

> there wouldOn Mon, Feb 24, 2025 at 12:35 PM 'Paul Ruane' via
> golang-nuts <golan...@googlegroups.com> wrote:
> >
> > I hit a problem today whereby a gRPC call did not come back with a 
> status of cancelled, despite the request context being cancelled.
> >
> > Tracing it through I found that it was because of a failed DNS lookup 
> and that the DNS code does not propagate the context cancelled error. I was 
> wondering if there was a particular reason for this?
> >
> > In the code at these locations (at least), the `context.Canceled` error 
> is mapped to a `net.CanceledError` (which has unwrap semantics), but is 
> then promptly converted to a string:
> >
> > • 
> https://github.com/golang/go/blob/2ee775fd9b58247618cf8bc06935f33875bdc872/src/net/cgo_unix.go#L52
> > • 
> https://github.com/golang/go/blob/2ee775fd9b58247618cf8bc06935f33875bdc872/src/net/cgo_unix.go#L82
> >
> > The struct `DNSError` does actually have a field called `UnwrapErr`, but 
> it does not get populated in these cases. I was going to raise an issue but 
> thought I would check here first.
>
> What you are describing is basically https://go.dev/issue/63109 which
> led to https://go.dev/issue/63116. I think you've found a bug in the
> code that addressed those issues (https://go.dev/cl/532217). Please
> open a new issue. Thanks.
>
> Ian
>

-- 


*This email, including its attachments, contains information from Elwood. 
"Elwood" means Elwood Technologies LLP, Elwood Technologies Services 
Limited, and any of their respective affiliates (as applicable).*

*
*

*Elwood Technologies LLP is incorporated and registered in the United 
Kingdom and authorised and regulated by the United Kingdom Financial 
Conduct Authority as a service company to provide the execution management 
system of its software-as-a-service platform with respect to security 
tokens and derivatives on digital assets to institutional clients.  *




This email, the information herein and any attached materials (collectively 
the "Email") are intended only for the addressee(s) and may contain 
confidential, proprietary, copyrighted and/or privileged material.


If you 
have received this Email in error please delete it and notify the sender 
immediately. This Email remains the property of Elwood, which reserves the 
right to require its return (together with any copies or extracts thereof) 
at any time upon request. Any unauthorised review, retransmission, 
dissemination, forwarding, printing, copying or other use of this Email is 
prohibited. Elwood may be legally required to review and retain outgoing 
and incoming email and produce it to regulatory authorities and others with 
legal rights to the information. Internet communications cannot be 
guaranteed to be secure or error free as information could be intercepted, 
changed, corrupted, lost, arrive late or contain viruses. Elwood accepts no 
liability for any errors, or omissions in this Email which arise as a 
result of internet transmission. This Email is not an official confirmation 
of any transaction. Any comments or statements made herein do not 
necessarily reflect the views of Elwood.

 

This Email is not an offer to 
sell or solicitation of an offer to buy any security or investment. It does 
not constitute or contain any investment advice and is being made without 
regard to the recipients' investment objectives, financial situation or 
means. Past performance is not an indicator of future results and Elwood 
provides no assurance that future results will be consistent with any 
information provided herein or attached hereto. Elwood and the sender make 
no warranties regarding the accuracy or completeness of the information in 
this Email and it should not be relied upon and is subject to change 
without notice. Elwood and its representatives, officers and employees 
accept no responsibility for any losses suffered as a result of reliance on 
the information in this Email or the reliability, accuracy, or completeness 
thereof.




You agree and acknowledge that you will handle any personal 
data which Elwood provides to you in accordance with the requirements of 
applicable data protection legislation, including General Data Protection 
Regulation in the EU.


*Our privacy notice, which describes how we handle 
personal information is available at https://elwood.io/privacy-policy/ 
<https://elwood.io/privacy-policy/>. If you would like to opt-out of 
receiving marketing communications from Elwood, please email us at 
le...@elwood.io <mailto:le...@elwood.io>. *

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/457d5e76-1759-47e6-8f4e-3b2d172f32fen%40googlegroups.com.

Reply via email to