harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sian January (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-617) [classlib][luni] HttpURLConnection does not support persistent connections
Date Wed, 14 Feb 2007 10:40:05 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473039
] 

Sian January commented on HARMONY-617:
--------------------------------------

Hi Alexander,

I'm not sure about testProxiedConnectionPersistence.  It seems to be making the connection
in two different ways - 

HttpURLConnection c = (HttpURLConnection)
      new URL("http://some.host:1234")
             .openConnection(new Proxy(Proxy.Type.HTTP,
                     new InetSocketAddress("localhost", 
                           httpServer.port())));

and

HttpURLConnection c2 = (HttpURLConnection)
            new URL("http://some.host:1234").openConnection();

If I change the second one to be the following:

HttpURLConnection c2 = (HttpURLConnection)
       new URL("http://some.host:1234")
           .openConnection(new Proxy(Proxy.Type.HTTP,
                 new InetSocketAddress("localhost", 
                     httpServer.port())));

then the test passes.  What do you think?

> [classlib][luni] HttpURLConnection does not support persistent connections
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-617
>                 URL: https://issues.apache.org/jira/browse/HARMONY-617
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Kleymenov
>         Assigned To: Paulex Yang
>         Attachments: luni.patch, luni2.patch, patch-test2.txt, test.patch
>
>
> Current HttpURLConnection does not support persistent connections while RI implementation
does.
> Implementation of this mechanism will allow sufficiently increase the performance of
network applications based on HttpURLConnections. To make Harmony's implementation more attractive
for use this support SHALL be implemented.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message