Comments (2)
I think I got it.
Our implementation of XEP-124 uses two HTTP socket connections. That means that they could call OnRead
concurrently.
That OnRead
will be proxied through a convoluted path, and eventually dispatched to HttpStanzaStream
.
That means that OnRead
/ OnError
methods could be called (almost) simultaneously from two different threads, and that could lead to calling OnRead
after OnError
.
So, we need to make our HttpStanzaStream
completely thread-safe, and make sure it's okay to call event handlers in any combination.
from jabber-net.
@nrevbay, thank you very much for your bug report. It turned out that it was a really nasty bug. My investigation involved much goto
, threading issues and convoluted code paths; that was the reason it took me so long to fix the reason of the issue. The changes you proposed in #85 finally were landed (in a slightly different form though) in the develop
branch.
from jabber-net.
Related Issues (20)
- This will never happen in the "if else"
- Not unique Package.ID generation. HOT 4
- NuGet package has incorrect reference to netlib.Dns HOT 3
- Jabber-net connect to Cisco Jabber HOT 7
- Can't connect with TLS 1.2 because TLS1.0 is hardcoded in StartTLS() method
- how to get message history (message archiving) using jabber-net HOT 9
- XEPs and RFCs support page with version HOT 1
- XEP-0479: XMPP Compliance Suites 2023
- Add support for SCRAM-SHA-1(-PLUS), SCRAM-SHA-256(-PLUS)
- Port to .NET Standard
- SASL EXTERNAL mechanism HOT 1
- Cannot connect to CISCO CUCM v.11 HOT 4
- HTML documentation on UntrustedRootOK looks strange
- JID not working HOT 8
- Compress on not work with openfire
- Deadlock HOT 10
- Stuck on disconnect in Example HOT 3
- InvalidOperationException("Socket not connected.")
- Jabber response is not delivered to recipient if sendnig thread is the same that was listened before HOT 5
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 jabber-net.