Commit ffe4904
Fix big memory leak
connectRequests were not properly freed, errors were not handled correctly.
Since this is a duplex stream, the connection needs to be closed manually on error.
sslSemaphores were not being deleted at all.
Please notice that the deletion of semaphores can be done better.1 parent 4119422 commit ffe4904
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| 385 | + | |
385 | 386 | | |
386 | 387 | | |
387 | 388 | | |
| |||
394 | 395 | | |
395 | 396 | | |
396 | 397 | | |
397 | | - | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
398 | 405 | | |
399 | 406 | | |
400 | 407 | | |
401 | | - | |
| 408 | + | |
402 | 409 | | |
403 | | - | |
404 | | - | |
| 410 | + | |
405 | 411 | | |
406 | 412 | | |
407 | 413 | | |
408 | | - | |
409 | 414 | | |
410 | 415 | | |
411 | 416 | | |
| |||
0 commit comments