Problem with network - sockets

Over time as HA is running i can see the logs start filling uo with errors related to network sockets. Such as below. Is there any fine tuning in Raspbian that needs to be done to handle the extra connections?

2018-04-06 13:50:08 ERROR (MainThread) [homeassistant.components.media_player.kodi] Error calling async_play_media on entity media_player.kodi_kitchen: TransportError("Error calling method 'Player.Open': Transport Error", TimeoutError())
2018-04-06 15:59:15 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on socket transport
2018-04-06 19:40:39 ERROR (SyncWorker_1) [homeassistant.components.light.yeelight] Unable to update bulb status: Bulb closed the conne
2018-04-07 04:45:33 ERROR (MainThread) [homeassistant.components.telegram_bot.polling] wrong status 502