-
Notifications
You must be signed in to change notification settings - Fork 254
add tcp-pinger for mailservers #1672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Pull Request Checklist
|
Jenkins BuildsClick to see older builds (107)
|
Currently this doesn't seem to work as I'm unable to make and RPC request: curl -s localhost:8545 -H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","method":"mailservers_Ping","params":[["1.1.1.1:53"], 1000],"id":1}' | jq {
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32601,
"message": "the method mailservers_Ping does not exist/is not available"
}
} NOTE: Turns our the call name needs to be lowercase: |
aed9e15
to
0409524
Compare
0409524
to
5de9033
Compare
15b5060
to
f3c7f0d
Compare
Error in the CI:
|
Android seems broken, not sure why:
Something similar goes for iOS:
|
This is added in Go 1.13 and I think we still use 1.12 in the CI.
https://sourcegraph.com/github.com/golang/sys/-/blob/plan9/syscall_plan9.go#L258 it's clearly tsTimeout := unix.Timespec{Nsec: int32(timeout.Nanoseconds())} |
Yeah, I get it, but why are you looking at a |
8c8675a
to
8a4bf5d
Compare
Now I have no idea why iOS fails or the linting in tests... |
Problem with iOS. Sorry, I looked in a wrong file. But generally there are some issues with types so it just needs fixing as told. And linter now... Did you update Go in the CI? |
Same goes for type Timespec struct {
Sec int32
Nsec int32
} http://www.golang.so/src/syscall/ztypes_darwin_arm.go type Timespec struct {
Sec int64
Nsec int64
} http://www.golang.so/src/syscall/ztypes_darwin_arm64.go There is a helper method but it's not exported and it uses strict types: func setTimespec(sec, nsec int64) Timespec {
return Timespec{Sec: int32(sec), Nsec: int32(nsec)}
} |
Found the solution to func TimeToTimespec(t time.Time) (Timespec, error) |
9f11977
to
be8e8f6
Compare
@adambabik I managed to fix the build errors, but I have no clue what the linter issues are about. Also, I tried building it with
Which makes no sense because the method clearly exists: func (d Duration) Milliseconds() int64 https://golang.org/pkg/time/#Duration.Milliseconds |
I think this issue - golang/go#28564 - indicates that the |
21b4b84
to
b68dc98
Compare
I ran a build of |
I have no idea why it started complaining about returned C types. In 153124f, this error is ignored. I reported this behaviour in golangci/golangci-lint#858. There is a simple case how to reproduce it. |
@adambabik thanks for fixing that, then I guess we are ready to merge unless you think there's anything else this might be missing. I added a small |
153124f
to
69376e0
Compare
69376e0
to
6bd667d
Compare
6bd667d
to
476f01e
Compare
Signed-off-by: Jakub Sokołowski <[email protected]>
352fa0c
to
88c4876
Compare
This is an initial version of implementation of an RPC call for checking latency of mailservers.
Partially resolves status-im/status-mobile#9394.
Status: READY