Comments (13)
Hello,
Thanks for the bug report. Indeed the websocket example doesn't work for me too in Chrom[e|ium]
browser and I don't know why yet, this looks very weird though. I found a related bug in Orcania. But this doesn't fix the websocket problem in Chrome yet.
Concerning the string handling issue, can you be more specific? I've retested the example using valgrind and nothing popped for valgrind, the memory was clean. If you confirm this memory problem, can you open a new issue in github?
Thanks for your help!
from ulfius.
Hello again,
I think I solved the problem on the websocket_example. Can you check the branch fix-websockets and tell me if the problem is fixed on your side? It's not complete yet because I've seen I'm not fully RFC compliant but this will be addressed soon.
from ulfius.
I checked out the branch but on my side it's worth.
It stills not work on chrome, and and doesn't work anymore on firefox... :/
from ulfius.
did you update orcania
too? The branch fix-websockets
in Ulfius is now plugged with the orcania branch fix-string_array_has_trimmed_value
from ulfius.
I had not the first time.
I did now but it didn't change a thing.
Neither Chrome or Firefox works for me now
from ulfius.
When you open the browser console (F12), what does the error say?
from ulfius.
For firefox:
WebSocket
binaryType: "blob"
bufferedAmount: 0
extensions: ""
onclose: function connectSocket/mySocket.onclose()
onerror: null
onmessage: function connectSocket/mySocket.onmessage()
onopen: null
protocol: ""
readyState: 3
url: "ws://10.0.164.36:9275/websocket"
proto: WebSocketPrototype { close: close(), send: send(), url: Getter, … }
index.html:37:4
Firefox ne peut établir de connexion avec le serveur à l’adresse ws://10.0.164.36:9275/websocket.
from ulfius.
What does the connection says in the network tab?
from ulfius.
*** Error im './websocket_example': double free or corruption (fasttop): 0x75300cf8 ***
Aborted (core dumped)
from ulfius.
I've pushed some more in the fix-websocket
branch, including a change in Orcania. I was able to make the websocket work on my side.
I was able to run the websocket_example on Ubuntu 17.10 (amd64) with Firefox and Chromium, and also on a solid Raspberry Pi 2 running Raspbian Stretch.
Can you re-run your tests with this new code?
from ulfius.
Thanks that works now for both Chrome and Firefox.
Great support ;-)
from ulfius.
Could you please let me know when you will merge this corrective branch into the master?
from ulfius.
That's an excellent news!
It will be merged soon, probably today.
from ulfius.
Related Issues (20)
- [Issue] simple_example: build failed HOT 1
- ulfius_add_endpoint_by_val() url_prefix VS. url_format HOT 2
- HTTP GET with array as response body HOT 2
- simple_example as static build for managed server HOT 2
- undefined reference to `pointer_list_init' HOT 2
- How to setup https mode? HOT 4
- Sending file in response for Ulfius REST request
- Do we have any official Ulifius Yocto recipe? HOT 1
- How can I reopen a closed issue? HOT 4
- [Issue]../../src/libulfius.so: undefined reference to `[email protected]' HOT 1
- [Issue] A use after free bug in src/ulfius.c HOT 1
- [Issue]A double free bug in ulfius.c HOT 4
- [Issue]A use after free bug in src/ulfius.c HOT 1
- [Feature request] How to use libulfius to implement a secure, asynchronious and scalable REST API? HOT 3
- What is the best way to let libulfius interact with libpq? HOT 2
- uwsc can't connect to socket while wscat can HOT 2
- Ulfius failed to link microhttpd on mingw64 using CMake HOT 4
- Support for graceful shutdown HOT 2
- How to add swagger openAPI documentation for ulfius based webservices ? HOT 3
- Issue faced in file_upload_callback in Ulfius TLS mode [HTTPS] HOT 3
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 ulfius.