Closed
Bug 387354
Opened 19 years ago
Closed 18 years ago
J2ME Client - reduce "ask to use" network dialogs.
Categories
(Mozilla Labs :: Joey, defect)
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
| Reporter | ||
Updated•19 years ago
|
Summary: reduce "ask to use" network dialogs. → J2ME Client - reduce "ask to use" network dialogs.
Comment 1•19 years ago
|
||
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?
| Reporter | ||
Comment 2•19 years ago
|
||
can we use http keep-alive to avoid making multiple connections?
Comment 3•19 years ago
|
||
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.
| Reporter | ||
Comment 4•19 years ago
|
||
right, i am saying lets do some work to keep these http connections open.
Comment 5•19 years ago
|
||
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?
| Reporter | ||
Comment 6•19 years ago
|
||
right. also... we need to not close every connection object every time there is a network operation.
Comment 7•19 years ago
|
||
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.
| Reporter | ||
Comment 8•19 years ago
|
||
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?
Comment 9•19 years ago
|
||
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.
| Reporter | ||
Comment 10•19 years ago
|
||
ah. maybe that is why some phones offer a "socket" connection instead of http for service similar to ours.
Comment 11•19 years ago
|
||
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.
| Reporter | ||
Updated•18 years ago
|
Assignee: dougt → nobody
| Reporter | ||
Comment 12•18 years ago
|
||
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.
Description
•