feat(wip): udp rework client side tests & server tests update

This commit is contained in:
Toby
2023-07-24 20:12:48 -07:00
parent f0ad2f77ca
commit 27460960ab
3 changed files with 144 additions and 28 deletions

View File

@@ -149,6 +149,10 @@ func (c *clientImpl) openStream() (quic.Stream, error) {
func (c *clientImpl) DialTCP(addr string) (net.Conn, error) {
stream, err := c.openStream()
if err != nil {
if netErr, ok := err.(net.Error); ok && !netErr.Temporary() {
// Connection is dead
return nil, coreErrs.ClosedError{}
}
return nil, err
}
// Send request