0

I've just inherited some code that uses the Restlet framework - must admit I'd never even heard of it until now.

The pattern seems to be to do:

Request request = new Request(method, uri);
Client client = new Client(protocols);
Response response = client.handle(request);

but when I was debugging the code, I noticed quite a few daemon threads running. Is that normal? Should the code be closing the Client or something similar?

Thanks,

Paul

user265330
  • 2,533
  • 6
  • 31
  • 42

1 Answers1

2

You should call client.stop() when you are done.

Jerome Louvel
  • 2,882
  • 18
  • 19