Coder Social home page Coder Social logo

Comments (10)

mcollina avatar mcollina commented on July 22, 2024 1

👍 , I'll test on Monday.

from pino-socket.

jsumners avatar jsumners commented on July 22, 2024

I can see the benefit. But then you get into the discussion in pinojs/pino#41. The question is really, is it better to drop logs or potentially send incomplete log "lines"?

Hmmm, having written that it occurs to me that since pino-socket already expects to receive a LF as a delimiter before forwarding. So that could be used to stick the chunks into a fixed length FIFO buffer.

As for the actual issue of automatic reconnect. In the default mode, UDP, this shouldn't be an issue; it's just throwing packets out into the ether and whatever happens, happens.

from pino-socket.

mcollina avatar mcollina commented on July 22, 2024

So, this is just for TCP. I think we should just skip the lines while the connection went down for now. The problem with current setup is that pino-socket would crash the upstream process if the connection goes down.

from pino-socket.

jsumners avatar jsumners commented on July 22, 2024

I have an idea on solving the tcp reconnect issue. I'll be working on it soon.

from pino-socket.

jsumners avatar jsumners commented on July 22, 2024

Okay, I've implemented some sort of tcp reconnecting on the develop branch. Please give it a review and test it in your situation. I'm fairly certain it needs more work before a release.

from pino-socket.

mcollina avatar mcollina commented on July 22, 2024

It does what's advertised, let's package that up and release :)

from pino-socket.

jsumners avatar jsumners commented on July 22, 2024

Did you have any issues with shutting down the local process?

from pino-socket.

jsumners avatar jsumners commented on July 22, 2024

shrug If so it can be fixed in 0.4.1 or 0.5.0. The reconnect feature is now published in 0.4.0.

from pino-socket.

mcollina avatar mcollina commented on July 22, 2024

@jsumners I didn't, is that an issue? which version of node?

from pino-socket.

jsumners avatar jsumners commented on July 22, 2024

It was just something I experienced during a local test. It was most likely a fault of mine.

from pino-socket.

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.