-
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
In java, Relay starts but nothing happens #369
Comments
Your device should open a popup. Some devices system have bugs with the popup if the screen is off (or in other conditions), gnirehtet just request the system to open a VPN. |
You mean, with the Rust version, it works? |
yes, in the rust version it works |
Sorry, I could not reproduce. On Windows, if I run It is very suspicious that the Rust version works but the Java version fails to "start", since they execute exactly the same command. |
I encouter this problem too . The progress stucks at This problem only occurs when the output of the progress is larger than the default write buffer... so it works well usually.. The solution is that we can redirect the output to another file, and then read from that file... |
Oh, yes! 👍
Instead we could parse the output stream before |
Yes, but I think it is not the best practice. If the output is slow , you may read a fake 'eof' before the progress is actually finished :) |
Hmm, no, you may not read a fake EOF. You may get partial reads, but not fake EOF. Writing a file to the filesystem for that is not necessary. |
Well , I just cannot come up with another solution to avoid partial reads except for creating another thread to read it ... |
The process may stuck because its output buffer is full, but the output was consumed only after the process was terminated, causing a deadlock. Consume process output before waiting for process termination to fix the problem. Refs #369 <#369> Refs #370 <#370> Co-authored-by: tusenpo <[email protected]>
Fixed on |
In java Relay starts but nothing happens.
I have installed on my windows 10 the JRE 8 281 x86 and x64. This only happens with gnirehtet java.
👇
PS C:\Android\Gnirehtet\Java> .\gnirehtet-run.cmd
2021-03-08 19:54:24.855 I Gnirehtet: Starting relay server on port 31416...
2021-03-08 19:54:24.855 I Gnirehtet: Checking gnirehtet client...
2021-03-08 19:54:25.015 I Relay: Relay server started
The text was updated successfully, but these errors were encountered: