Git Product home page Git Product logo

Comments (3)

KevinWL avatar KevinWL commented on June 18, 2024

libuwsc 版本 2.0.4
OK , 我知道是 cl->send(cl, NULL, 0, WEBSOCKET_OP_CLOSE); 这个问题, 但是为什么会出现cat 文件时会出错,还没清楚,libubox 里面的bug?

应该是server 先close掉了socket,导致client write Broken pipe

from rtty.

spot62 avatar spot62 commented on June 18, 2024

this line
https://github.com/zhaojh329/libuwsc/blob/513aaabb1340d65c1f773dc455ed7066d84a8853/src/uwsc.c#L53
do recursion there:
https://github.com/zhaojh329/libuwsc/blob/513aaabb1340d65c1f773dc455ed7066d84a8853/src/uwsc.c#L429
and
https://github.com/zhaojh329/libuwsc/blob/513aaabb1340d65c1f773dc455ed7066d84a8853/src/uwsc.c#L469
not returned

Simple replace it with

uwsc_error(cl, 0);

from rtty.

zhaojh329 avatar zhaojh329 commented on June 18, 2024

Can you make a PR?
https://github.com/zhaojh329/rtty/blob/master/CONTRIBUTING.md

from rtty.

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.