Search found 5 matches

by oesb
Sat Mar 16, 2019 6:05 am
Forum: ESP32 boards
Topic: Is there a non-recoverable memory leak in the uSSL implementation on the ESP32?
Replies: 9
Views: 4650

Re: Is there a non-recoverable memory leak in the uSSL implementation on the ESP32?

Thank you very much for that! It is greatly appreciated! I had pretty much the same thing thanks to your description. :-) I will definitly take a delve into your github on resiliant servers! On that note... Thank you for putting together all of your documentation and code, they are a fantastic resou...
by oesb
Fri Mar 15, 2019 5:51 pm
Forum: ESP32 boards
Topic: Is there a non-recoverable memory leak in the uSSL implementation on the ESP32?
Replies: 9
Views: 4650

Re: Is there a non-recoverable memory leak in the uSSL implementation on the ESP32?

I found the solution to the memory leak in the uansyncio __init__.py. I am not sure why, but by placing the unwrapped socket onto the uasyncio poller and reading and writing from the uSSL wrapped socket my continuous memory leak disappered. I still have a 4 kb chunk taken on the initial connection t...
by oesb
Thu Mar 14, 2019 7:57 pm
Forum: ESP32 boards
Topic: Is there a non-recoverable memory leak in the uSSL implementation on the ESP32?
Replies: 9
Views: 4650

Re: Is there a non-recoverable memory leak in the uSSL implementation on the ESP32?

Is there an example of the coding style you suggest hiding somewhere? I am fairly certian I understand what you are suggesting, but I am new to programming and I still find example code very useful for ensuring comprehension.

Thank you very much for your help!
by oesb
Wed Mar 13, 2019 5:48 pm
Forum: ESP32 boards
Topic: Is there a non-recoverable memory leak in the uSSL implementation on the ESP32?
Replies: 9
Views: 4650

Re: Is there a non-recoverable memory leak in the uSSL implementation on the ESP32?

I am fairly certain I covered all the socket closures. I am not certain if I linked in uasyncio correctly though. def listen(self): log = logging.getLogger('AsyncServer') log.info('Server Started') self.sock.listen(3) while True: gc.collect() log.debug('free_mem: {}'.format(gc.mem_free())) yield uas...
by oesb
Mon Mar 11, 2019 9:07 pm
Forum: ESP32 boards
Topic: Is there a non-recoverable memory leak in the uSSL implementation on the ESP32?
Replies: 9
Views: 4650

Is there a non-recoverable memory leak in the uSSL implementation on the ESP32?

Is there a memory leak in the uSSL implementation on the ESP32? I wrote a simple socket server with uasyncio and micropython 1.10 which connects using uSSL. However, the free memory drops each time it connects and does not recover it until the ESP32 is rebooted. I used a bytearray as a buffer for th...