LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2011 The Go Authors. All rights reserved. | 1 // Copyright 2011 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 package net | 5 package net |
6 | 6 |
7 import ( | 7 import ( |
8 "bytes" | 8 "bytes" |
9 "flag" | 9 "flag" |
10 "fmt" | 10 "fmt" |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 c, err := d.Dial("tcp", ln.Addr().String()) | 539 c, err := d.Dial("tcp", ln.Addr().String()) |
540 if err != nil { | 540 if err != nil { |
541 t.Fatal(err) | 541 t.Fatal(err) |
542 } | 542 } |
543 c.Close() | 543 c.Close() |
544 if got != keepAlive { | 544 if got != keepAlive { |
545 t.Errorf("Dialer.KeepAlive = %v: SetKeepAlive called = %
v, want %v", d.KeepAlive, got, !got) | 545 t.Errorf("Dialer.KeepAlive = %v: SetKeepAlive called = %
v, want %v", d.KeepAlive, got, !got) |
546 } | 546 } |
547 } | 547 } |
548 } | 548 } |
LEFT | RIGHT |