Comments (9)
The parallel-downloads branch on my fork fixes this issue. At least for ZXing. In my testing it has also been successful in allowing parallel downloads to succeed while still allowing for auto-closing. I need more testing to be done. So far the parallel downloads have only been tested using Chrome 65 on Android. Also as is it allows multiple clients to connect and when the first one completes a download the application exits. I have an idea on how to fix it, but would like to have more people test the parallel downloading to make sure I'm on the right track before investing more.
Time constraints mean I won't be able to get a PR submitted until probably tomorrow, but feel free to grab it from my fork.
from qrcp.
Found a couple of issues with the code. As is it does happen to allow the transfer to complete sometimes but not consistently. Know the issue and will be updating the code today.
from qrcp.
from qrcp.
I can confirm that this fixes the issue for me 👍
from qrcp.
In the case of some barcode scanning applications, the app will do it's own internal fetch to the URL rather than directly referring you to the browser.
This seems to be the case with the commonly used Barcode Scanner
application on Android, and I suspect it may be done automatically by most apps that use the library that it seems to be using underneath, Zxing
I suspect the best way of handling this is to either put in some kind of "don't auto close flag" or the more hacky but potentially more useful not closing the connection depending on the user-agent of the initial request.
from qrcp.
As I mentioned in this comment, I would like to retain the auto close ability. Let's continue researching a solution, I'm pretty sure we will find one; thanks for showing interest in this!
from qrcp.
@claudiodangelis I'm having the same Issue.
I agree, that the feature of auto closing should not be removed.
However, couldn't we add a command line parameter which disables the auto-close feature?
That way the user can decide for themselfs what to use
from qrcp.
Agreed @beac0n, while we work out a definitive fix for this, we can have a flag that prevents the tool from automatically closing.
The patch would look like this:
var autocloseFlag = flag.Bool("autoclose", true, ".....")
. . .
if *autocloseFlag == true {
os.Exit(0)
}
Usage would be:
./qr-filetransfer -autoclose=false myfile.pdf
Thoughts? Maybe we can find a better flag name for autoclose
(or using a complement)?
To @joyme123: you submitted a PR for this issue a few days back, do you want to apply these changes?
from qrcp.
Hello @ginhton @Dolondro @beac0n and @jerson, could you please help testing the fix provided by @tssva?
Instructions:
# From the cloned repository...
git fetch origin pull/54/head:parallel-downloads
git checkout parallel-downloads
go build
./qr-filetransfer /path/to/the/problematic/file
Thanks 👍
from qrcp.
Related Issues (20)
- logo is not visible on website HOT 2
- Add support IPFS HOT 2
- Add support e2e encryption HOT 1
- "Can't connect to the server" HOT 6
- Option to invert QR code HOT 3
- add qrcp to winget HOT 5
- windows7运行提示不是有效的win32应用程序? HOT 2
- Tests should run at each push
- Generate QR in terminal by right click on any file HOT 5
- 文件后缀变化/file name ext-name changed?? HOT 6
- How to create contextmenu of any file to show qrcode in Mac?? HOT 6
- Is there any plan to develop sending long text from PC to mobile phone? HOT 5
- A bug HOT 3
- New Bug to show the QRcode in CMD (old verison) HOT 2
- QRcode show in a single windows? HOT 1
- Finish file transferring , QRCP not exit??? HOT 2
- Can Qrcp run with a log file? HOT 3
- zip flag have a bug HOT 1
- Not Support X86 Platform? HOT 1
- Add option for specifying file name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qrcp.