Giter Club home page Giter Club logo

simple-transfer's Introduction

simple-transfer Build Status

Simple hyperg replacement

.

simple-transfer's People

Contributors

kmazurek avatar mfranciszkiewicz avatar prekucki avatar tworec avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

simple-transfer's Issues

ask without handshake, disconnect

My simple-transfer (version 0.3.6) is constantly logging this:

Mar 09 14:02:52 etam-golem hyperg[2851]: INFO [hyperg::server] Connection from: 78.47.127.188:34298
Mar 09 14:02:52 etam-golem hyperg[2851]: INFO [hyperg::connection] opened connection [116] [78.47.127.188:34298]
Mar 09 14:02:52 etam-golem hyperg[2851]: ERROR [hyperg::connection] invalid handshake from: 78.47.127.188:34298
Mar 09 14:02:52 etam-golem hyperg[2851]: INFO [hyperg::connection] closed connection [116] [78.47.127.188:34298]
Mar 09 14:03:36 etam-golem hyperg[2851]: INFO [hyperg::server] Connection from: 78.47.127.188:34554
Mar 09 14:03:36 etam-golem hyperg[2851]: INFO [hyperg::connection] opened connection [117] [78.47.127.188:34554]
Mar 09 14:03:36 etam-golem hyperg[2851]: ERROR [hyperg::connection] ask without handshake, disconnect
Mar 09 14:03:36 etam-golem hyperg[2851]: INFO [hyperg::connection] closed connection [117] [78.47.127.188:34554]
Mar 09 14:04:26 etam-golem hyperg[2851]: INFO [hyperg::server] Connection from: 78.47.127.188:34840
Mar 09 14:04:26 etam-golem hyperg[2851]: INFO [hyperg::connection] opened connection [118] [78.47.127.188:34840]
Mar 09 14:04:26 etam-golem hyperg[2851]: ERROR [hyperg::connection] invalid handshake from: 78.47.127.188:34840
Mar 09 14:04:26 etam-golem hyperg[2851]: INFO [hyperg::connection] closed connection [118] [78.47.127.188:34840]
Mar 09 14:05:08 etam-golem hyperg[2851]: INFO [hyperg::server] Connection from: 78.47.127.188:35102
Mar 09 14:05:08 etam-golem hyperg[2851]: INFO [hyperg::connection] opened connection [119] [78.47.127.188:35102]
Mar 09 14:05:08 etam-golem hyperg[2851]: ERROR [hyperg::connection] invalid handshake from: 78.47.127.188:35102
Mar 09 14:05:08 etam-golem hyperg[2851]: INFO [hyperg::connection] closed connection [119] [78.47.127.188:35102]
Mar 09 14:05:54 etam-golem hyperg[2851]: INFO [hyperg::server] Connection from: 78.47.127.188:35354
Mar 09 14:05:54 etam-golem hyperg[2851]: INFO [hyperg::connection] opened connection [120] [78.47.127.188:35354]
Mar 09 14:05:54 etam-golem hyperg[2851]: ERROR [hyperg::connection] ask without handshake, disconnect
Mar 09 14:05:54 etam-golem hyperg[2851]: INFO [hyperg::connection] closed connection [120] [78.47.127.188:35354]
Mar 09 14:06:39 etam-golem hyperg[2851]: INFO [hyperg::server] Connection from: 78.47.127.188:35618
Mar 09 14:06:39 etam-golem hyperg[2851]: INFO [hyperg::connection] opened connection [121] [78.47.127.188:35618]
Mar 09 14:06:39 etam-golem hyperg[2851]: ERROR [hyperg::connection] invalid handshake from: 78.47.127.188:35618
Mar 09 14:06:39 etam-golem hyperg[2851]: INFO [hyperg::connection] closed connection [121] [78.47.127.188:35618]
Mar 09 14:07:33 etam-golem hyperg[2851]: INFO [hyperg::server] Connection from: 78.47.127.188:35906
Mar 09 14:07:33 etam-golem hyperg[2851]: INFO [hyperg::connection] opened connection [122] [78.47.127.188:35906]
Mar 09 14:07:33 etam-golem hyperg[2851]: ERROR [hyperg::connection] invalid handshake from: 78.47.127.188:35906
Mar 09 14:07:33 etam-golem hyperg[2851]: INFO [hyperg::connection] closed connection [122] [78.47.127.188:35906]
Mar 09 14:08:19 etam-golem hyperg[2851]: INFO [hyperg::server] Connection from: 78.47.127.188:36162
Mar 09 14:08:19 etam-golem hyperg[2851]: INFO [hyperg::connection] opened connection [123] [78.47.127.188:36162]
Mar 09 14:08:19 etam-golem hyperg[2851]: ERROR [hyperg::connection] ask without handshake, disconnect
Mar 09 14:08:19 etam-golem hyperg[2851]: INFO [hyperg::connection] closed connection [123] [78.47.127.188:36162]

Most important part: my golem was last launched many days ago.

Logging events

Current state

Event Message
On start INFO [hyperg::database] db started id=0xb7e1f0604805b5eb819b2ac980a48f87
INFO [actix_server::builder] Starting server on 127.0.0.1:3292
On new connection INFO [hyperg::server] Connection from: 10.30.8.179:35586
On disconnect INFO [hyperg::connection] disconnect from: 10.30.8.179:35586
On upload / download INFO [actix_web::middleware::logger] 127.0.0.1:54786 "POST /api HTTP/1.1" 200 43 "-" "python-requests/2.21.0" 0.224526

Expected

On start

Starting hyperg version=0.3.2, buildNumber=%TRAVIS_BUILD_NUMBER%, source=%TRAVIS_COMMIT%

On command

command st ID
command en ID ver={},id={}
command st ADDRESSES
command en ADDRESSES result={}
command st UPLOAD files={}, timeout={}, hash={}
command en UPLOAD hash={}

...

Multi bind on windows

On windows is possible to run multiple instances. On linux application shows:

Error: Os { code: 98, kind: AddrInUse, message: "Address already in use" }

Poor logs

  • Missing information about version , source, and build numer.
  • Missing timestamp in file logline.

Download fails after 60s

Steps to reproduce:

  • upload big enough file to hyperg.
  • try to download file from remote address

Result:

  • download ends with mailbox closed error

GC uploaded files

  • find rule how to detect unused files
  • create job that removes outdated hash structures.

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.