Comments (1)
No answer in mIRC forums. Options for explicit cancel are:
A. User requested to Accept/Ignore/Cancel - GETFAIL event is NOT called if user selects Ignore or Cancel so DLF does not attempt a retry - which is as we would want it.
B. User clicks Cancel in DCC Get window. In which case, this is the active window when GETFAIL is triggered and we can test for this and avoid a retry. However if window is active it could be:
B1. User clicked cancel; or
B2. Connection failed before bytes were sent; or
B3. Connection failed after bytes were sent.
As far as I can tell, these are impossible to test for definitively using e.g. .idle, or .rcvd, so we can only assume that if the window is active, chances are that user clicked Cancel, but it could have been a comms failure.
C. User right clicks on Treebar or Toolbar and selects close in which case window is not active and there is no way to distinguish between this and comms failure.
We could try to use $get(-1).idle = 0 or 1 - the number of seconds since data was sent - but on a slow connection this could be > 1 when user cancels, or if sender closes the TCP connection or user loses connectivity that the PC can recognise (like disconnect of wifi) this could be 0 and a comms failure.
Planning to leave as-is - any Get failure results in a retry - but open to alternative suggestions. But idle = 0 or 1 seems best bet so far.
from dlfilter.
Related Issues (20)
- Private messages filtered on network with no channels assigned.
- Avoid Chan.Spamfilter becoming spam itself
- Auto Notify functionality for query windows HOT 1
- Add anti-spam functionality for rapid messages
- xdcc get of a previous failed download fails to restart HOT 8
- Issue with options dialog when Windows Display scaling > 100% HOT 38
- Errors when trying to update from 2.0.4 HOT 4
- DLFilter Menu HOT 2
- Invalid parameters error HOT 5
- Check for server op on global notice
- I load the script and nothing happens other than mIRC warning me not to click Yes. HOT 3
- fltered my own typing to server window HOT 2
- mirc lockup with dlfilter HOT 1
- v210 spams channels that do not support searchbot HOT 10
- Please create a tutorial on how to make dlls for mirc using latest IDE's like VS 2019. HOT 1
- update check fails DNS lookup HOT 22
- Where is version 2.12? HOT 1
- No AppData message on installation of 2.12 HOT 1
- "Colour value invalid" when extended colours are selected in mIRC HOT 4
- Failed to establish socket connection: [10060] Connection timed out HOT 2
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 dlfilter.