Comments (10)
I think it can be restored.
Out of curiosity, what do you use the session id for?
from cometd.
We use sessionId to keep track of connections, so messages can be published to correct users and to be able to do cleanup.
BTW. Do you have a rough idea when 8.0 will be GA? Few weeks? Few months? If it helps, I have not seen any issues with 8.0 that were caused by CometD itself. (Other then missing getSessionId) Jetty 12 caused some issues, mainly because handshaking is now done asynchronously (instead of inside of spring framework's filter chain) so we lost Security context and one of the filters (ShallowEtagHeaderFilter) was causing content-type to not be set correctly but again, those were not caused by CometD itself.
Thanks,
wojtassi
from cometd.
We use sessionId to keep track of connections, so messages can be published to correct users and to be able to do cleanup.
But you cannot keep track of connections using the HTTP session id.
It would be the same for all the connections from the same client, so you could only count different clients, not connections.
CometD 8 final is not far away, we need to decide on few things and restore Spring integration.
Thanks for the feedback on CometD 8 and Jetty 12.
Please report your problems in either project, if any, as it will help to fix them sooner.
from cometd.
But you cannot keep track of connections using the HTTP session id.
It would be the same for all the connections from the same client, so you could only count different clients, not connections.
In our case "connection" is misnomer, our code's connection is basically a multimap of sessionid to Bayeux ServerSession.
Thanks for the answer and sorry for confusion.
from cometd.
In our case "connection" is misnomer, our code's connection is basically a multimap of sessionid to Bayeux ServerSession.
Consider that for the same HTTP session id, you can have multiple ServerSession
s (for example, 2 browser tabs).
from cometd.
Related Issues (20)
- Received message are still being processed after disconnect HOT 9
- When is JakartaEE 10 compatible version release planned for cometd ? HOT 5
- The BayeuxClient in java sends advice on /meta/connect HOT 6
- long poll protocol stops polling HOT 6
- The Promise in server extensions seems counter to the documentataion HOT 10
- How does a message know it's lazy? HOT 2
- Do lazy channels using the default maxTimeout get that default from the sending or receiving transport? HOT 4
- Cannot share scheduler between `BayeuxClient` and Jetty `HttpClient` HOT 1
- Not all options copied to OortComet instances
- NullPointerException while notifying listener org.cometd.client.transport.LongPollingTransport HOT 2
- Move cometd.js to ES6 HOT 7
- Wrong Jetty version in CometD 6.x/7.x MANIFEST HOT 1
- Support the "Partitioned" cookie attribute HOT 2
- WebSocket transport improvements HOT 6
- Getting NullPointerException on receiving /meta/subscribe message HOT 5
- Wrong processing of Set-Cookie with "expires" with Jetty client HOT 2
- Salesforce Set-Cookie ignored with Jetty client HOT 1
- Idle timeout listener races with long-polling connection re-opening timeout when using `CometDHandler` HOT 1
- Sweep mechanism can stop working abruptly HOT 10
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 cometd.