2

黑莓框架是否将连接重用用于http连接?我用connectionFactory.getConnection("api.abc.com"). 我注意到我的应用程序的第一个呼叫(简单的休息呼叫,获取未读消息的数量)大约需要 4 秒,但所有后续呼叫都需要不到一秒的时间来完成。我注意到在另一个呼叫之后进行相同的呼叫需要不到一秒钟,所以我认为黑莓使用 http 连接重用。有人对这种行为有解释吗?

4

1 回答 1

1

You can test this on the server, by looking at the network activity that actually makes it to the server. My own testing indicates BlackBerry devices do not re-use connections.

于 2012-12-05T06:19:58.253 回答