Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    OS Error 23

    Scheduled Pinned Locked Moved LoPy
    5 Posts 3 Posters 58 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      Thierry
      last edited by

      Hello,
      from time to time, trying to create a socket with

      inetSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
      

      I get to an exception (OS Error 23).

      I just wonder what is OS Error 23 and how to prevent it.

      Thanks
      Thiery

      1 Reply Last reply Reply Quote 0
      • D Offline
        d.alvrzx
        last edited by

        A quick google shows that the error could be caused by not closing the socket after using it? Unsure, but worth a try.

        https://forum.micropython.org/viewtopic.php?t=2856

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          Thierry @d.alvrzx
          last edited by

          Hello @d-alvrzx , I have seen it --of course-- (but my socket is cleanly closed after use).

          I solved the issue running the garbage collector every 1 seconds (OS Error 23 seems to be "too many open files").

          D 1 Reply Last reply Reply Quote 1
          • G Offline
            Gijs
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • D Offline
              d.alvrzx @Thierry
              last edited by

              @Thierry Glad to hear you got it fixed :)

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post

              Pycom on Twitter

              Pycom