Giter Site home page Giter Site logo

ggrandes / jrinetd Goto Github PK

View Code? Open in Web Editor NEW
19.0 3.0 10.0 67 KB

Jrinetd is a network TCP port redirector/forward proxy (like rinetd) with extra features like connection Failover, LoadBalancing and Clustering. In pure Java (NIO)

License: Apache License 2.0

Shell 2.08% Java 97.92%
port-redirector tcp load-balancer proxy-protocol java

jrinetd's People

Contributors

chunlinyao avatar ggrandes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jrinetd's Issues

Any way to use as lib for dynamic endpoints update?

Thanks for your works on such useful software.
I am working on a project that need a feature like port forward and load balance. To make jrinetd working with my application, I have to start server by make some parameters in class Jrinetd to public.
Another issue is server starts with a configuration file for endpoints. In my case, endpoints needs to be update frequently. I have no idea how to update the endpoint list dynamically. Some suggestion will be great.

failover not work

This is my config file

forward 0.0.0.0:13690 10.40.1.3:13690,10.40.1.4:13690 FAILOVER

If 10.40.1.3 is down, It keeps trying to connect 10.40.1.3.

Feature: NOLOG

Exclude some endpoints / source-address from logging (like localhost/127.0.0.1)

Little race-condition in config-reload

2020-07-11T21:13:18 [INFO] [Jrinetd] [ConfigWatcher] Reloaded config
2020-07-11T21:13:18 [INFO] [80004d4f] [events-19791-127.0.0.1:2222] Ending handler on 127.0.0.1:2222
2020-07-11T21:13:18 [ERROR] [80004d4e] [events-19790-127.0.0.1:2222] Unhandled Exception: java.util.ConcurrentModificationException
java.util.ConcurrentModificationException
        at java.base/java.util.HashMap$HashIterator.remove(HashMap.java:1507)
        at org.javastack.jrinetd.ServerEventHandler.process(ServerEventHandler.java:125)
        at org.javastack.jrinetd.ServerEventHandler.run(ServerEventHandler.java:135)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
2020-07-11T21:13:18 [INFO] [80004d4e] [events-19790-127.0.0.1:2222] Ending handler on 127.0.0.1:2222

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.