| |

VerySource

 Forgot password?
 Register
Search
View: 1055|Reply: 8

Httpconnection problem

[Copy link]

2

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-8 13:00:02
| Show all posts |Read mode
Each time you open Httpconnection is a slow process


Is there such a way


Design a class similar to the connection pool in J2SE


I don't know if anyone gave a connection pooling example to Httpconnection in J2ME
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 India

Post time: 2020-1-9 10:27:02
| Show all posts
attention
Reply

Use magic Report

0

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 Germany

Post time: 2020-1-10 11:00:01
| Show all posts
1. Personally feel that the speed of opening Httpconnection can be tolerated, basically within 1S (except for some mobile phones, such as NOKIA6270)
2.Connection pool can be implemented by itself, but not used
Reply

Use magic Report

0

Threads

12

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-1-28 18:00:01
| Show all posts
Connection pooling should be based on long connections
If you disconnect every time after connecting (using cmwap proxy), the connection pool is useless
Reply

Use magic Report

0

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-1-28 20:18:02
| Show all posts
Passing by and modifying:

2.Connection pool can be implemented by itself, but not used->

2.The connection pool can be implemented by itself, but it is not practical
Reply

Use magic Report

0

Threads

23

Posts

17.00

Credits

Newbie

Rank: 1

Credits
17.00

 China

Post time: 2020-5-26 11:15:01
| Show all posts
Like upstairs.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-6-10 11:45:02
| Show all posts
Opening Httpconnection is slower than if you only download 1K of data, and now using this form to connect to the network will waste time connecting. Basically, the real phone is in 3-5 seconds, but if the network is not good, it may reach 40 seconds. When using HTTP connection, you can set the connection method of "Connection" to have different effects on the connection. You can set it to: "Keep-Alive" "close". The main difference between them is that: "Keep-Alive" download mode must wait for all data to be downloaded before a second connection can be made on the phone, and the "close" form will generate a second connection after the connection is generated Without having to wait for the data to download.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-6-16 20:00:02
| Show all posts
Can I open two http links at the same time?
Reply

Use magic Report

0

Threads

12

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-7-16 21:15:01
| Show all posts
Keep-alive is also useless. The cmwap agent will still close you every time
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list