Closed Bug 387354 Opened 19 years ago Closed 18 years ago

J2ME Client - reduce "ask to use" network dialogs.

Categories

(Mozilla Labs :: Joey, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: dougt, Unassigned)

Details

(Whiteboard: marked_as_wfm_due_to_project_retirement)

on a stock moto phone, we get about 14 "Use Data network?" confirms. Other than signing, can we do anything at the protocol level to reduce / reuse the connections
Summary: reduce "ask to use" network dialogs. → J2ME Client - reduce "ask to use" network dialogs.
There is not much you can do about this except signing. Older Motorolas just want signing to shut up. I tested with a Motorola RAZR V3xx and it allows the following options "Allow once, ask again", "Allow always, dont ask again", "Deny once, ask again" and "Deny always, never ask again". I would vote for closing this bug as INVALID as there is nothing we can do about this except signing. Doug: What do you think?
can we use http keep-alive to avoid making multiple connections?
Problem with this is that at least in the past some phones dont send this header, or some provider gateways dont forwarded it. I tested this briefly with my Motorola RAZR V3xx and it asked for acceptance each time a http connection is opened.
right, i am saying lets do some work to keep these http connections open.
What work can we do except setting the "Connection: keep-alive"-header and hoping that the firmware of the phone and the provider gateway support this feature too?
right. also... we need to not close every connection object every time there is a network operation.
We only close the HTTP connections. This has nothing to do with the underlying TCP connection used. And we need to close the HTTP connections as we will otherwise get problems with too much HTTP connections open as we need to create a new HTTP connection on each request.
your saying that when I do a close on a http connection in j2me, that the underlying socket isn't close and may be reused?
As far as I understand keep-alive this means the underlying HTTP implementation re-uses the existing TCP connection. You cant reuse the HTTP connection. You need to open a new HTTP connection. So when I close the HTTP connection and its in keep-alive mode it will not (imidiatly) close the TCP connection. It will close it when no HTTP connection to the same host is created for some time (keep-alive timeout). I looked a bit more into this and I found no phone/provider combination that works with keep-alive.
ah. maybe that is why some phones offer a "socket" connection instead of http for service similar to ours.
yes, socket connection might be an alternative, but its not supported by as many phones as http is and its a big effort to implement a new protocol using socket connections.
Assignee: dougt → nobody
Joey has been retired. Thanks for participating. http://joey.labs.mozilla.com/
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WONTFIX
Whiteboard: marked_as_wfm_due_to_project_retirement
You need to log in before you can comment on or make changes to this bug.