Giter VIP home page Giter VIP logo

Comments (13)

babelouest avatar babelouest commented on May 20, 2024

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.

babelouest avatar babelouest commented on May 20, 2024

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.

mmardinian avatar mmardinian commented on May 20, 2024

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.

babelouest avatar babelouest commented on May 20, 2024

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.

mmardinian avatar mmardinian commented on May 20, 2024

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.

babelouest avatar babelouest commented on May 20, 2024

When you open the browser console (F12), what does the error say?

from ulfius.

mmardinian avatar mmardinian commented on May 20, 2024

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.

babelouest avatar babelouest commented on May 20, 2024

What does the connection says in the network tab?

from ulfius.

mmardinian avatar mmardinian commented on May 20, 2024

*** Error im './websocket_example': double free or corruption (fasttop): 0x75300cf8 ***
Aborted (core dumped)

from ulfius.

babelouest avatar babelouest commented on May 20, 2024

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.

mmardinian avatar mmardinian commented on May 20, 2024

Thanks that works now for both Chrome and Firefox.
Great support ;-)

from ulfius.

mmardinian avatar mmardinian commented on May 20, 2024

Could you please let me know when you will merge this corrective branch into the master?

from ulfius.

babelouest avatar babelouest commented on May 20, 2024

That's an excellent news!
It will be merged soon, probably today.

from ulfius.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.