Giter VIP home page Giter VIP logo

officer's People

Contributors

chadrem avatar

Stargazers

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

Watchers

 avatar  avatar

officer's Issues

Connection gets closed on erroneous input

Hello there,

I Am trying to use this via PHP.
There are a few things that i wondered.
If, for some reason there would be an faulty command, or bad json, the connection gets closed.
It would be much nicer if the response could be a something with an error in it.
like {"error":"Invalide Command"} or something like that, maybe even with error codes etc...

Also, i did some testing, and trying to unlock a lock that is not set by that connection will also close the connection. In some situations it could be handy to unlock a lock that has been set by someone else, like usage for semaphore.
But still, if it would not be permitted to unlock a lock of someone else, it should not close the connection.

officer not stateful.

here is the scenario, where officer does not release lock held even after the client is long gone.

  1. machine1 - start officer server
  2. machine2 - start client which acquires lock and sleeps for say 2000 seconds.

machine 2 was connected to machine 1 using the wireless network in my case.

  1. disable wireless on machine2 .

  2. kill client on machine2

  3. notice that officer stills reports a lock is being held from machine2(waited for > 4minutes)

  4. enable wireless network & restart client => now the client hangs waiting to acquire a lock as officer stills report lock is being held from machine2.

hence the state of locks is not updated properly.

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.