Giter VIP home page Giter VIP logo

nntp2p's People

Contributors

dowlingw avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nntp2p's Issues

Useless error message when unable to bind port

Reporter: dragoon

When binding to privileged port (and potentially any unavailable port) Spring boot throws the error:

Error starting ApplicationContext. To display the auto-configuration report enabled debug logging (start with --debug)

Make this more informative

Mysql userauth

Allow the users to be stored in a mysql database.

create database user_db;
use user_db;
create table user (
user_id int(6) not null auto_increment,
username varchar(16) not null,
password varchar(64) not null,
max_connections int(6)) not null
);

Handle upstream contention issue

It is possible to starve clients from upstream threads, depending on a number of factors:

  • Number of concurrent client requests
  • Number of article requests being served from cache
  • Number of upstream connections
  • Whether issue #4 is fixed (this will happen very often otherwise)

Currently the server will return a harsh response code, look at alternative strategies such as:

  • Waiting for a while
  • Transient error code
  • Something else

Configuration Errors

Reporter: dragoon

When starting with a bad configuration, user receives unhelpful message such as:

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.commons.configuration.XMLConfiguration]: Factory method 'xmlConfiguration' threw exception; nested exception is org.apache.commons.configuration.ConfigurationException: Unable to load the configuration from the URL file:/etc/nntp2p.cfg

Fix this plz

Add option to disable SSL certificate verification

The SSL client socket will throw an exception if it can't verify the certificate chain, so this falls over for providers that don't run with a real SSL cert (eg: Blocknews)

This will be required to complement #6 where I was planning on generating a new SSL certificate if one is not provided by the user.

Modify ArticleProxy to use an execution plan

Currently resolveProvider() only returns a single provider that has the article.
When used, this provides a one-shot attempt to get the article via that provider.

Returning a prioritised list of providers with the article allows the proxy to attempt providers in sequence should any failures occur fetching the article.

Disk cache maximum size not honoured

This code was never implemented. It's pretty core functionality.

Worst case: Scheduled job to prune the cache.
Best case: Check on article insertion, queue job.

Statistics

Provide some kind of usage statistics to give an idea of how much data has been served out of the cache vs upstream

Debian packaging does not correctly create user

Reporter: dragoon

When installing the debian package generated from maven target, the user/group nntp2p is not created correctly.

Environment: Ubuntu 14.04

useradd is present on system.

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.