-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lwipClient - fix mem pool leak #207
base: main
Are you sure you want to change the base?
Conversation
I'm not seeing it. Sure using a |
no. Client must be copyable. multiple copies of Client can point to the same TCP connection
not really. the |
Overload copy-ctor. But yeah, I do see your point somewhat. Can you prepare a adjacent PR showing how you'd like to take this further? |
ok |
f915d83
to
ebe2184
Compare
This issue depends on arduino/ArduinoCore-API#218 |
no. |
fix mem pool leak in lwipClient with shared_ptr with custom deleter.
for lwipClient created from lwipServer the deleter doesn't free the struct. server releases the clients it manages. it would be better if the server used an array of lwipClient objects. then the shared_ptr in them would hold the pointer. maybe in a follow up PR if this is merged.