TelegramApi icon indicating copy to clipboard operation
TelegramApi copied to clipboard

Too many Connections(Too many Open Files)

Open semsimsom opened this issue 7 years ago • 2 comments

Thanks for this great tool. When I use kernelComm.getDownloader() Or kernelComm.getUploader() to download or upload a file, it works great But after sometime which the program is still open, I encountered the Too Many Open Files(After about one day). I investigate it and it appears to get new connections even if i do not use any call method. lsof shows list of new opened files about 2000 each day. lsof -p xxx |wc -l Most of the open files are FIFO (probably stream whiteout close!?) Also,netstat shows many new connection to telegram(ESTABLISHED connections). netstat -an | egrep '91.108.4.182|149.154.167.91'

semsimsom avatar Sep 15 '17 11:09 semsimsom

Hi there. I tried using this api without calling any method. I only Login once and the problem still exists. It slowly get new connections and does not release old ones. I encountered another problem, too. After some time, it revokes and delete my session and I need to login again!

semsimsom avatar Oct 02 '17 06:10 semsimsom

I'm trying to take over from Ruben's code here : https://github.com/mdhak83/javaGram

mdhak83 avatar Jun 10 '20 16:06 mdhak83