Skip to content
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

DNS query timeout for DEFAULT_RELAY/DEFAULT_RELAY6 #863

Open
x1y9 opened this issue Dec 28, 2024 · 1 comment
Open

DNS query timeout for DEFAULT_RELAY/DEFAULT_RELAY6 #863

x1y9 opened this issue Dec 28, 2024 · 1 comment

Comments

@x1y9
Copy link

x1y9 commented Dec 28, 2024

Sometimes croc send just quit with this:

croc --debug send --no-local D:\DataRecords.db
[debug] 16:25:03 cli.go:214: debug mode on
[debug] 16:25:03 cli.go:218: public IP address: 60.186.168.201
[debug] 16:25:05 croc.go:521: hashed D:\DataRecords.db to 7d44419124fd9eb1 using xxhash
[debug] 16:25:05 croc.go:526: file 0 info: {Name:DataRecords.db FolderRemote:./ FolderSource:D:\ Hash:[125 68 65 145 36 253 158 177] Size:5106483200 ModTime:2023-10-07 17:03:25.7511384 +0800 CST IsCompressed:false IsEncrypted:false Symlink: Mode:-rw-rw-rw- TempFile:false IsIgnored:false}
Sending 0 files (4.8 GB)[debug] 16:25:05 croc.go:530: longestFilename: 14
Sending 'DataRecords.db' (4.8 GB)
Code is: 1813-africa-hippie-decide

On the other computer run:
(For Windows)
    croc 1813-africa-hippie-decide
(For Linux/OSX)
    CROC_SECRET="1813-africa-hippie-decide" croc
Code copied to clipboard
[debug] 16:25:05 croc.go:720: could not connect to : could not connect
[debug] 16:25:05 croc.go:826: error from errchan: could not connect to : could not connect
could not connect to : could not connect

seems it's relate with the init query of the DEFAULT_RELAY/DEFAULT_RELAY6, sometimes the 500ms timeout is not long enough, so cause the quit.

I am using this version:

croc version v10.1.3
@schollz
Copy link
Owner

schollz commented Dec 28, 2024

does it work if you increase the delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants