Giter Site home page Giter Site logo

Bot is leaking ... about telepush HOT 5 CLOSED

muety avatar muety commented on May 28, 2024
Bot is leaking ...

from telepush.

Comments (5)

muety avatar muety commented on May 28, 2024

My bad, didn't fix the issue. I guess the actual problem are the TCP connections. Gonna fix that soon.

from telepush.

EyckWigo avatar EyckWigo commented on May 28, 2024

FD use is still increasing, after a pull and re-deploy, fresh telegram-middleman-bot uses this much fd's:

lrwx------ 1 root root 64 Aug  9 17:47 0 -> /dev/console
lrwx------ 1 root root 64 Aug  9 17:47 1 -> /dev/console
l-wx------ 1 root root 64 Aug  9 17:47 2 -> pipe:[136209]
lrwx------ 1 root root 64 Aug  9 17:47 3 -> socket:[680819974]
lrwx------ 1 root root 64 Aug  9 17:47 4 -> [eventpoll]
lrwx------ 1 root root 64 Aug  9 17:47 5 -> socket:[680820010]
lr-x------ 1 root root 64 Aug  9 17:47 6 -> /dev/urandom
lrwx------ 1 root root 64 Aug  9 17:48 8 -> socket:[680857044]
lrwx------ 1 root root 64 Aug  9 17:48 9 -> socket:[680879271]

and after a night:

ls /proc/18191/fd -l|wc
    268    2939   17223

from telepush.

muety avatar muety commented on May 28, 2024

Are you using polling- or webhook mode?

from telepush.

EyckWigo avatar EyckWigo commented on May 28, 2024

Polling, please wait though, I need to re-check, it looks like my changes ('BOT_TOKEN patched into main.go) might have affected your updates, I'm now running clean code with --token commandline option and see no signs of leakage yet.

from telepush.

muety avatar muety commented on May 28, 2024

No, you were right. I also had 32 fd's overnight. I've made another attempt to fix the problem according to the points made in this article

from telepush.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.