Comments (14)
Fixed in master
, new release on its way.
from artillery-core.
Sounds like a bug @BerendWeij! Thanks for the report!
from artillery-core.
Weird thing. If you add:
socketio:
query: 'token={"key":value}'
you will see the query being part of the second handshake, and not the first.
from artillery-core.
Commenting on my own issue, nice :)
I think it has to do with the methods:
-
loadContextSocket (which adds the query to the options)
-
compile (which does not add the query to the options)
They both have a io.connect()
from artillery-core.
The issue with the query object is solved with this pull request: #170
The double connecting is still occurring unfortunately.
from artillery-core.
I think it is an issue with the namespace.
In the method loadContextSocket, there is a lookup
if(!context.sockets[namespace]) {
If it cannot find a socket, it creates a new one. Which should not be the case with my example code.
from artillery-core.
@hassy what would be the easiest way to test changes to artillery-core? I am willing to dive into this issue today when possible. I can find information about the contribution rules, but not about the installation steps.
Best regards!
from artillery-core.
@BerendWeij clone artillery
and artillery-core
repos, then point lib/dispatcher.js
(https://github.com/shoreditch-ops/artillery/blob/master/lib/dispatcher.js) to your local artillery-core
, npm install
in both directories, and you're good to go!
from artillery-core.
and thanks for taking a look!
from artillery-core.
Awesome! Thanks for the quick reply. I will keep you posted.
from artillery-core.
Any news on this? I'm using artillery 1.6.0-4
and am facing issues with the client connecting twice. This seems to happen only if I define an emit inside of the flow
block. Example below:
{
"config": {
"target": "http://localhost:3000",
"phases": [
{
"duration": 1,
"arrivalRate": 1
}
]
},
"scenarios": [
{
"engine": "socketio",
"flow": [
{
"emit": {
"channel": "client-loaded"
}
}
]
}
]
}
This means that if I remove the json object literal inside of flow
I get one connection only.
from artillery-core.
there's a problem with this fix.
if you only want to connect and not send anything, it won't connect.
from artillery-core.
Yep, cheers @roeycohen.
from artillery-core.
@hassy, but what if i only want to listen?
from artillery-core.
Related Issues (20)
- Feature Proposal: File Upload HOT 6
- Artillery does not return with certain malformed requests
- Known vulnerability in npm dependancy ws. HOT 2
- Known vulnerability in npm dependancy tough-cookie
- Question/bug?: customStats being overwritten HOT 1
- beforeReqeust's requestParams can't be customized. HOT 1
- Send binary packet through WS? HOT 1
- WS get received data? HOT 1
- Add socketio query param on connect event HOT 3
- Match json fails for numeric value
- Variables with 0 numeric value are always empty string
- Expose http response body to afterResponse HOT 2
- Socket.IO Engine - Emit Callback Data HOT 1
- Double send in socket.io engine HOT 3
- Add raw TCP socket engine
- [Feature Request] Add support for SignalR
- supporting multipart form data HOT 4
- Data got emit twice in socket.io engine HOT 2
- form not sending data 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 artillery-core.