This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <arpa/inet.h> | |
| #include <sys/socket.h> | |
| #include <pthread.h> | |
| void *send_udp_packet(void *arg) { | |
| int sock; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package udp_test | |
| import ( | |
| "crypto/rand" | |
| "log" | |
| "net" | |
| "testing" | |
| "time" | |
| "github.com/stretchr/testify/require" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "crypto/tls" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/binary" | |
| "log" | |
| "net" | |
| "syscall" | |
| "golang.org/x/sys/unix" | |
| ) |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2022-05-15T14:03:40.2349968Z === RUN TestDialExistingConnection | |
| 2022-05-15T14:03:40.2350193Z ================== | |
| 2022-05-15T14:03:40.2350401Z WARNING: DATA RACE | |
| 2022-05-15T14:03:40.2350644Z Read at 0x00c00018f000 by goroutine 59: | |
| 2022-05-15T14:03:40.2350892Z reflect.Value.Uint() | |
| 2022-05-15T14:03:40.2351337Z /opt/hostedtoolcache/go/1.17.9/x64/src/reflect/value.go:2305 +0x1849 | |
| 2022-05-15T14:03:40.2351789Z github.com/davecgh/go-spew/spew.(*dumpState).dump() | |
| 2022-05-15T14:03:40.2352408Z /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:324 +0x1770 | |
| 2022-05-15T14:03:40.2352873Z github.com/davecgh/go-spew/spew.(*dumpState).dump() | |
| 2022-05-15T14:03:40.2353503Z /home/runner/go/pkg/mod/github.com/davecgh/[email protected]/spew/dump.go:421 +0x1fe4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package linger_test | |
| import ( | |
| "fmt" | |
| "io" | |
| "math/rand" | |
| "net" | |
| "testing" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net" | |
| ) | |
| func main() { | |
| log.Fatal(run()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/binary" | |
| "fmt" | |
| "log" | |
| "net" | |
| "syscall" | |
| "time" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/binary" | |
| "fmt" | |
| "log" | |
| "net" | |
| "strings" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "crypto/tls" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "net/http" |
NewerOlder