Wipy2.0 OSERROR:-1 using ssl and sockets



  • Hallo,
    I'm using upushover lib for sending data to Pushoverserver.
    The first time doing that everything works fine-the secondtime the oserror:-1 happens in this line:
    s.connect(socket.getaddrinfo(PUSHOVER_HOST, PUSHOVER_PORT)[0][4])
    I always close the socket after the sesonse is received and make a gc.collect() after every request.
    Firmware on my wipy20 is 1.11.0.b1
    It seems to be a major problem on this platform with socket,ssl and the combination of both so a solution has to be found!!
    please help!



  • This is the main file where the Send Message function is called
    line 239
    0_1514991508749_pushover_main.png
    This seems to be a memory problem.When I make a small program with a list of 10 long textstrings it works!?
    Although gc.mem_free() gives a result of > 4000 on the bloated program?



  • Thank you for your instant response.
    ![Bild Text](0_1514991105626_upushover_lib.png Bild Link)
    This is the function that is called from the main file.Error points to line 41!



  • @overlander said in Wipy2.0 OSERROR:-1 using ssl and sockets:

    Pushoverserver

    Hi,
    Would it be possible for you to share your whole script so we can get a better idea of what is happening?


 

Hello World?

Pylife on Kickstarter - November 2018








Back Us On Kickstarter >

Pycom on Twitter