pSpaces / jSpace

Programming with Spaces in Java
MIT License
17 stars 13 forks source link

A client can easily send a Server that is using jSpace into an infinite loop of errors #24

Open Castleburg opened 6 years ago

Castleburg commented 6 years ago

A server creates a new SpaceRepository and adds a gate to it with an uri. Then it creates a new SequentialSpace and adds it to the SpaceRepository. The uri for the SpaceRepository is "tcp://"+ host + ":" + port + "/?keep". The uri to the SequentialSpace is "tcp://"+ host + ":" + port + "/Lounge?keep".

Now a client can send the server into throwing errors infinitely by connecting either directly to the SpaceRepository, using its uri, or a non-exsistant SqeuentialSpace and then do a 'System.exit(0)'. An example of a non-existant SqeuentialSpace could be: 'hostSpace = new RemoteSpace("tcp://" + host + ":" + port + "/ripServer?conn");'

EDIT: It also seems that a client doing a System.exit(0) while waiting for a get also seems to cause the same thing.

Castleburg commented 6 years ago

The update out-dated my client-side server-killswitch. Good work :)

JBcoding commented 4 years ago

https://github.com/pSpaces/jSpace/pull/27