Giter VIP home page Giter VIP logo

Comments (4)

ii64 avatar ii64 commented on September 22, 2024

Checkout your Internet uplink, remove unused code that may increase your task working time.

from line-py.

LifeBasher avatar LifeBasher commented on September 22, 2024

easier said than done :) unused code shouldnt increase the task working time no? but basically you are telling me that i need to remove some validation code the process dont really need to work? Sorry im more a database programmer than a web programmer and i never did the part where i got to connect so i'm mostly trying to figure it out.
Most of my chatbot is database related so it work nice and easily keep info but i just have that slow answer problem :P
This week ill look how i can remove the handshake process like you talk about in some other thread and will continue to look for what can be removed :)

from line-py.

ii64 avatar ii64 commented on September 22, 2024

It probably your long polling, sometimes LINE kinda buggy (like there's already new Op, but long polling not emitted new one, or it just like... died socket). Oh ya one thing, LINE didn't actually handshake https like you'll understand this uri scheme [:proto]://[:host][:ssl_proto_default_port]/[:uri] (gist code)

from line-py.

LifeBasher avatar LifeBasher commented on September 22, 2024

@anysz i thought that the long polling was the action(events) received?..... because that part is really quick.
I wanted to add stuff to my bot before looking more about that. im gonna time every part and look for what slow it down lol.
i read what you were talking about going into http or the point that the https wasn't always connected so it was slowing thing down so ill look into it.

if i can ask you something else.... do you have any idea how the bot could download an image sent by an other user?
i managed kick/protection/ban/tagall/sending image (really really slow cause of the same issue here) lots of other stuff linking the bot with my db but cant manage to download an image sent by a user lol

from line-py.

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.