Git Product home page Git Product logo

gomol-json's Introduction

Hey! I'm Kristin!

I love coding and learning/experiencing new things! I'm a huge geek, nerd, ๐Ÿ‘ฉโ€๐Ÿ’ป, etc and love everything about it! I'm most interested in moving bits around at the lowest levels, whether they're over networks or a system bus.

About me:

  • ๐Ÿ˜„ Pronouns: she/her
  • ๐Ÿ’œ Favorite languages: Rust, Go, C#, Python
  • ๐Ÿ’ป Exciting tech: Kubernetes, RISC-V, FPGAs, WASM
  • ๐ŸŒฑ Learning: Embedded Rust, RISC-V, FPGAs
  • ๐Ÿค” Intrigued by: Pony, Crystal, WASM/WASI
  • ๐Ÿ’ฌ Ask me about: Anything! I love mentoring people ๐Ÿ‘ฉโ€๐Ÿซ, especially when it's a topic I'm passionate about (though I am a total introvert so sometimes I need some down time). Please contact me if you have questions about anything I might be able to help with!
  • ๐Ÿ“ซ Contact me: Twitter (@aphistic)
  • ๐Ÿ“– My blog: https://me.kxd.dev

gomol-json's People

Contributors

aphistic avatar efritz avatar

Watchers

 avatar

gomol-json's Issues

nil pointer dereference in reconnection

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x6fe6f3]

goroutine 6 [running]:
git.corvisa.com/plat/domo/vendor/github.com/aphistic/gomol-json.(*JSONLogger).write(0xc420202090, 0xc420314480, 0x346, 0x47e, 0x0, 0x0)
/go/src/git.corvisa.com/plat/domo/vendor/github.com/aphistic/gomol-json/json_logger.go:316 +0x43
git.corvisa.com/plat/domo/vendor/github.com/aphistic/gomol-json.(*JSONLogger).trySendFailures(0xc420202090, 0xc42001e180)
/go/src/git.corvisa.com/plat/domo/vendor/github.com/aphistic/gomol-json/json_logger.go:355 +0xa9
created by git.corvisa.com/plat/domo/vendor/github.com/aphistic/gomol-json.(*JSONLogger).performReconnect
/go/src/git.corvisa.com/plat/domo/vendor/github.com/aphistic/gomol-json/json_logger.go:336 +0xa5

Potential memory leak in failure mode

The code to handle failed messages currently uses a slice of a slice of bytes to handle re-sending messages. When a message is successfully sent, the slice that was sent may not be GC'ed correctly if the array underlying the slice is still holding a reference to the bytes that were sent. The library just needs to be tested in a few error modes when sending a large amount of messages to make sure everything is being cleaned up correctly.

Make the connection timeout on init much lower

When running the init it can take a long time to finish if the socket connection is dropping packets instead of rejecting them, causing startup to be delayed for way too long. It should be lowered to 60 seconds by default but allow configuration for a higher or lower value.

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.