You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golan...@googlegroups.com
I'm looking to do TCP dials with timeouts and specify local address. I see there was some work done on this with DialOpt, and suggestions of DialTCPTimeout. What's the status of this? What's the best way to work around it in the meanwhile?
Benjamin Measures
unread,
Jul 18, 2014, 8:39:32 AM7/18/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golan...@googlegroups.com
On Thursday, 17 July 2014 06:49:22 UTC+1, Matt Joiner wrote:
I'm looking to do TCP dials with timeouts and specify local address.
> --
> 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...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Gustavo Niemeyer, Matt Joiner, golang-nuts
I believe that the OP wanted to specify the source IP of the TCP connection as well. In that case, Dialer can do it (as well as the timeout) but DialTimeout cannot. See the LocalAddr and Timeout fields of the net.Dialer struct.
Matt Joiner
unread,
Jul 21, 2014, 2:27:09 AM7/21/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Matt Harden, Gustavo Niemeyer, golang-nuts
Thanks all. Somehow I didn't notice Dialer in the net package, and it has what I need.