Coder Social home page Coder Social logo

Comments (4)

huangy10 avatar huangy10 commented on August 10, 2024

排查了源代码,报错位置,在Limit_Clients/sockets.py文件中第123行,故将set_close_timeout 设置为False来暂时回避这个问题。

但是继而发现了另一诡异的问题。在第221行处,self.getpeername()返回的是一个长度为4的turple,前两个是地址和端口,而最后两个是0。这与文档有出入。我这里的python的版本是2.7.12。
暂时将这里修改了解决了这个问题

==== Update
发现了开始说的Invalid argument的问题。在setsockopt设置时,数据打包的格式设置成II在不同系统环境下的表现可能不稳定,替换成LL后解决了这个问题。

from pysocket.

falseen avatar falseen commented on August 10, 2024

厉害厉害!!原来是这个原因。我之前也发现了这个问题,但没想明白是怎么回事。

from pysocket.

huangy10 avatar huangy10 commented on August 10, 2024

@falseen 我创建了一个PR,改动很简单,你抽时间看看?

from pysocket.

falseen avatar falseen commented on August 10, 2024

@huangy10 好!目前还有一个问题,我想不到原因。不知你能否找到 ?
#2

from pysocket.

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.