Giter Club home page Giter Club logo

Comments (8)

rvalitov avatar rvalitov commented on June 6, 2024 1

Yes that's enough.

from monolog-telegram.

rvalitov avatar rvalitov commented on June 6, 2024 1

Thank you!! This week I'm very busy, but I will check for sure next week!

from monolog-telegram.

moeinrahimi avatar moeinrahimi commented on June 6, 2024

yes sure I will add an option to set timeout, I will mention you when the new feature implemented

from monolog-telegram.

rvalitov avatar rvalitov commented on June 6, 2024

Thank you for a fast feedback! Please keep in mind that if you use curl then it has 2 timeout options.

from monolog-telegram.

moeinrahimi avatar moeinrahimi commented on June 6, 2024

I found these two options for curl timeout .
are these two enough for setting timeout ?

curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0); 
curl_setopt($ch, CURLOPT_TIMEOUT, 400); 

from monolog-telegram.

moeinrahimi avatar moeinrahimi commented on June 6, 2024

@rvalitov
I released a new version of monolog-telegram, feel free to check it out and let me know if anything is wrong.
you can pass an new argument to monolog-telegram like this

$timeOut = 10 // in seconds
$log->pushHandler(new TelegramHandler($token,$channel,$date_default_timezone_set='UTC',null,$timeOut));

from monolog-telegram.

moeinrahimi avatar moeinrahimi commented on June 6, 2024

I'm closing the issue , feel free to re-open it if anything went wrong with timeout option

from monolog-telegram.

rvalitov avatar rvalitov commented on June 6, 2024

It's almost OK, I made some PRs related to this issue, please have a look:

from monolog-telegram.

Related Issues (7)

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.