Hi there,

I am currently trying to get Restlet Android 2.1-RC3 up and running to
perform REST calls via SSL/TLS. Unfortunately, the performance I am
seeing (on a real device, not the Android emulator) leaves some room
for improvement, i.e., even loading the on-device trust store takes a
couple of seconds before the actual call can take place.

Are there any switches to tune the client's performance I may have
missed? I already tried setting a custom (smaller or empty) trust
store, but any parameters I set do not seem to reach the
DefaultSslContextFactory. My initialization code looks like this:

-- 8< --
        Engine.getInstance().getRegisteredConverters().clear();
        Engine.getInstance().getRegisteredConverters().add(new
JacksonConverter());

        Engine.getInstance().getRegisteredClients().clear();
        final org.restlet.Context ctx = new org.restlet.Context();
        ctx.getParameters().add("chunkLength", "-1");
        ctx.getParameters().add("trustStorePath", "NONE");
        final Client client = new Client(ctx,
Arrays.asList(Protocol.HTTP, Protocol.HTTPS));
        Engine.getInstance().getRegisteredClients().add(new
HttpClientHelper(client));
-- 8< --

Any hint is much appreciated!

Thanks,
Thilo

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2925187

Reply via email to