-
Notifications
You must be signed in to change notification settings - Fork 600
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
[BUG] - Google drive uploading is unstable #345
Comments
Thank you for your report. (the terminal text you pasted contains multicolumn text, which is confusing)
Could you reproduce this crash often? It should be fixed by 211db45, but it should happen rarely.
I could not reproduce, but it means that the device sends a lot of UDP packets which could not be sent quickly enough on the client side. Is it better with a bigger buffer? diff --git a/relay-java/src/main/java/com/genymobile/gnirehtet/relay/UDPConnection.java b/relay-java/src/main/java/com/genymobile/gnirehtet/relay/UDPConnection.jav
a
index 6dd506c..5fec266 100644
--- a/relay-java/src/main/java/com/genymobile/gnirehtet/relay/UDPConnection.java
+++ b/relay-java/src/main/java/com/genymobile/gnirehtet/relay/UDPConnection.java
@@ -27,7 +27,7 @@ public class UDPConnection extends AbstractConnection {
private static final String TAG = UDPConnection.class.getSimpleName();
- private final DatagramBuffer clientToNetwork = new DatagramBuffer(4 * IPv4Packet.MAX_PACKET_LENGTH);
+ private final DatagramBuffer clientToNetwork = new DatagramBuffer(32 * IPv4Packet.MAX_PACKET_LENGTH);
private final Packetizer networkToClient;
private final DatagramChannel channel;
diff --git a/relay-rust/src/relay/udp_connection.rs b/relay-rust/src/relay/udp_connection.rs
index 936d578..d50403b 100644
--- a/relay-rust/src/relay/udp_connection.rs
+++ b/relay-rust/src/relay/udp_connection.rs
@@ -68,7 +68,7 @@ impl UdpConnection {
socket,
interests,
token: Token(0), // default value, will be set afterwards
- client_to_network: DatagramBuffer::new(4 * MAX_PACKET_LENGTH),
+ client_to_network: DatagramBuffer::new(32 * MAX_PACKET_LENGTH),
network_to_client: packetizer,
closed: false,
idle_since: Instant::now(), |
Sorry that's windows cmd 😬
Basically tried to backup my 2000 4k photos onto google drive at once using google photos auto sync (using your product to use ethernet speed and avoid crappy wifi). This crash happens everytime after some time (approx 2 to 5 mins).
I will give it a try. |
Phone: Xperia XZ1 - Firmware build 47.2.A.11.228 (latest available)
Android: 9.0.0
OS version: Windows 10 1909
gnirehtet version: 2.5 (Rust)
When trying to achieve a Google Photo backup (from Phone to Google Drive), proxy is throwing errors on requests then crashing after some time.
Backtrace is the following
Java version is not working either, spamming
The text was updated successfully, but these errors were encountered: