Comments (2)
I agree. Do you have a patch for this?
On 18. nov. 2014, at 00.08, Robert Shoemate [email protected] wrote:
When calling any of the public connect() methods from an Activity, these all route to the core connect() method that spawns a SocketThread.
Code like this executes a few times while the connection is being established. If you call connect() from the main thread, and plan on doing subsequent UI updates, this can be problematic.
synchronized (mSocketThread) { try { mSocketThread.wait(); } catch (InterruptedException e) { } }
This causes the main thread to block for long periods in certain situations, such as a connection taking a long time to establish. This is not ideal in situations where the UI needs to show a status of the connection. With a little refactoring, I think these waits can probably be removed to fix this.
—
Reply to this email directly or view it on GitHub #14.
from securewebsockets.
Not yet - I just discovered it, and am still looking into a good way to fix it.
from securewebsockets.
Related Issues (15)
- ECONNREFUSED (Connection refused) HOT 7
- Trust anchor for certification path not found. HOT 1
- WebSockets internal error (java.lang.NullPointerException) HOT 1
- Force close if App is disconnected to internet
- Hanging app n slow internet connection
- Headers? HOT 5
- WSS Websocket HOT 2
- Problem with reconnect
- Reconnect behaviour
- HeartBeat thread will never finish HOT 4
- Looper.prepare HOT 2
- Cant reconnect (if first connect than disconnect is called than connect will not connect) HOT 1
- how to use this as a cordova plugin ?
- License HOT 1
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 securewebsockets.