parallaxinc / Parallax-ESP

Fork of http://git.spritesserver.nl/esphttpd.git/ with support for loading the Parallax Propeller
Other
12 stars 6 forks source link

Connection issues causes connection leaks #34

Closed iseries1 closed 5 years ago

iseries1 commented 5 years ago

Using the tcp connect command cause a connection to be allocated from the pool but if there is a DNS error or connection error this pooled connection gets orphaned. After 5 bad connection attempts the pool is exhausted and no further connections are possible. In sscp-tcp.c there should be sscp_close_connection(c); added before returning an error code to the calling application.

dbetz commented 5 years ago

I'm working on this now. It's part of a larger update that includes a fix for the flash filesystem overflow issue that was reported.

PropGit commented 5 years ago

Thanks. I just noticed the flash filesystem issue was not added to issues (just in email and chat) so I'll make a quick one now that we can reference with the future release.

dbetz commented 5 years ago

I just pushed a fix for this.