logo elektroda
logo elektroda
X
logo elektroda

OBK Heap Drops Under Repeated Large HTTP Requests - leak/realloc question

divadiow 27 0
ADVERTISEMENT
  • #1 21837181
    divadiow
    Level 37  
    I have a question. I've been trying to make OBK fallover by spamming it with repeated oversized http requests.

    Using this:

    Code: Powershell
    Log in, to see the code


    Code: Powershell
    Log in, to see the code


    and with 1.18.253 I get this kind of dropping heap until device reboots, not always, but mostly, especially if clicking about in the gui. This device has MQTT, HA, BL0937 configured.
    Code: Text
    Log in, to see the code


    with these changes https://github.com/openshwprojects/OpenBK7231...mpare/main...divadiow:OpenBK7231T_App:tcpleak

    I can run the stress-test script over and over with seemingly little effect. (starting HA discovery drops heap to 30k from which it doesn't seem to recover - maybe that's a different issue or to be expected?)

    Code: Text
    Log in, to see the code


    is this a realloc bug?
  • ADVERTISEMENT
ADVERTISEMENT