Giter Site home page Giter Site logo

python socket recv hanging about ns3-gym HOT 4 OPEN

tkn-tub avatar tkn-tub commented on May 23, 2024
python socket recv hanging

from ns3-gym.

Comments (4)

anita-hu avatar anita-hu commented on May 23, 2024 3

The issue was resolved by setting debug=True in ns3env.Ns3Env(). Would be great if this could be fixed

from ns3-gym.

chwang1996 avatar chwang1996 commented on May 23, 2024

The issue was resolved by setting debug=True in ns3env.Ns3Env(). Would be great if this could be fixed

I have the same problem when running training on my custom environment, thanks for your solution. Hope this issue would be resolved.

from ns3-gym.

confifu avatar confifu commented on May 23, 2024

Setting debug = True does not solve the problem entirely, it shows the error in ns3 simulation script but stays there forever. To handle runtime errors in the simulation script I added
self.socket.RCVTIMEO = 100000
right next to this line

self.socket = context.socket(zmq.REP)

This makes sure that the socket request does not last forever and times out after 100000 millliseconds. The socket request is here

request = self.socket.recv()

from ns3-gym.

tim00631 avatar tim00631 commented on May 23, 2024

@confifu
I have the same issue in Ubuntu 18.04.
However, when I use the root user to run my script, the problem doesn't happened.
Maybe you could use the root user to exec the simulation script again.

from ns3-gym.

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.