添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
瘦瘦的鸡蛋面  ·  SQL带条件的oracle ...·  2 月前    · 
神勇威武的弓箭  ·  net.load_state_dict(to ...·  4 月前    · 
健壮的回锅肉  ·  C# String Dictionary ...·  5 月前    · 

Socket error -78 and errorno 9

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Hello,
Using urequests library on a LoPy: I get OSError -78 and errno 9 when doing get/post https requests. It only happens after running the application for several hours. Can anyone shed some light as to what OSError -78 stands for? and what errno 9 (Ebadf) means? Or maybe point me to the right direction?
Thank you!
Queries regarding PyCom products are best raised in their forum https://forum.pycom.io/ . As a very general point many issues involving failures of network devices after long periods of time proved to be down to not closing sockets. This results in socket instances proliferating until RAM is exhausted.
Peter Hinch
Index to my micropython libraries .
Thank you for replying. I have posted to the Pycom forum, hopefully someone will answer. The reason I posted here as well is because I assume these errors are defined in Micropython as a whole so I could get an answer to what they mean. Since the urequests library handles the opening and closing of the sockets, I am sure there are no open sockets left after an HTTP request.
  • ↳   Announcements and News
  • ↳   Newsletter archive
  • ↳   Kickstarter logistics for the Micro Python campaign
  • The MicroPython Language
  • ↳   General Discussion and Questions
  • ↳   Programs, Libraries and Tools
  • ↳   Development of MicroPython
  • Boards Running MicroPython
  • ↳   MicroPython pyboard
  • ↳   Pyboard D-series
  • ↳   WiPy and CC3200 boards
  • ↳   ESP8266 boards
  • ↳   ESP32 boards
  • ↳   micro:bit boards
  • ↳   Raspberry Pi microcontroller boards
  • ↳   Other Boards
  • Hardware Projects and Component Drivers
  • ↳   Hardware Projects
  • ↳   Drivers for External Components
  •