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

fails most of the time #16

Open
MaoHolden opened this issue Oct 30, 2023 · 11 comments
Open

fails most of the time #16

MaoHolden opened this issue Oct 30, 2023 · 11 comments
Assignees

Comments

@MaoHolden
Copy link

Hey Man, thank you for your quick fix of the server.

I tested several times, here are my results:

  • Most of the times just one of the clients display connection successful but the other one doesn't display anything and just keep loading forever, sometimes is the sender, sometimes is the receiver.
  • I was able to send a small image 2 times successfully.
  • When the connection is successful in large files it disconnects after a few seconds, the sender keeps trying to resend packet and the receiver just do nothing.

Here are two images from the third case:

qft1
qft2

@MaoHolden
Copy link
Author

Just want to mention that having a battle tested app like this would be awesome, not relying on servers to send files 🤯, please tell me if there's anything else I can do to help test, maybe run it with a higher debug level or something? Cheers!

@TudbuT
Copy link
Owner

TudbuT commented Oct 31, 2023

Usually you can simply increase the delay or lower the bitrate when the connection fails.
In terms of the failed connection: It is expected that both sender and receiver connect within 10 seconds of eachother. If that isn't the case, it tends to fails sometimes.

@TudbuT
Copy link
Owner

TudbuT commented Nov 1, 2023

Just want to mention that having a battle tested app like this would be awesome, not relying on servers to send files 🤯, please tell me if there's anything else I can do to help test, maybe run it with a higher debug level or something? Cheers!

I have already sort of battle-tested it: I use it to distribute files of 20 and up to 100 gigabytes (a very large minecraft world download) frequently.

I haven't needed anyone else's help recently, but I'll be sure to contact you if/when I do. Thanks for the offer!

@TudbuT TudbuT self-assigned this Nov 6, 2023
@MaoHolden
Copy link
Author

This is a far as I gotten, a small % of a movie, maybe I'm talking nonsense, but is there a way to tell it to holepunch again after x time of no connection? or something like that

t2-1
Screenshot from 2023-11-08 12-46-23

@MaoHolden
Copy link
Author

Also I wouldn't know the value for "Resume from" to restart the download when it gets stuck

@MaoHolden
Copy link
Author

What I noticed is that once it says "10s passed since last package" that's it, it completely stuck.

@TudbuT
Copy link
Owner

TudbuT commented Nov 8, 2023

Yeah this is one of the cases where your internet connection is either too slow or too unreliable. How fast is your internet? Are you using WiFi?

but is there a way to tell it to holepunch again after x time of no connection
I could probably make it do that actually, but I'm not sure how I'd implement it at this moment. I'll have a think about that later.

@MaoHolden
Copy link
Author

Yup I'm trying to send a movie from one computer using WIFI to another computer also using WIFI but with a Router/VPN

I also tried to send it to a friend using starlink and couldn't make it work, I'm gonna try again sending to Starlink without the VPN, that could be the reason.

Just wondering, how does torrents re-stablish connection after they "disconnect", because in the computer with VPN I can use torrents perfectly.

photo1699556169

@MaoHolden
Copy link
Author

I had better results transfering to a Startlink connection without the VPN, I'm gonna try tomorrow with a 5GB file and report back. This could be really useful for me since we have a ton of videos, that's why I'm so interested. And bittorrent sync went private :'(

Would be awesome if it could reconnect automatically after losing connection for certain amount of time. Do you rekon that would be too hard? I would like to suggest it as a feature. 😸

@TudbuT
Copy link
Owner

TudbuT commented Nov 22, 2023

Should be pretty doable to add a way to make it reconnect. I'll take a look.

@MaoHolden
Copy link
Author

Thanks, since it looks like my connections are not pretty stable enable automatic reconnection should pretty much solve my problem

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