Multiple http connection

is it possible for me to make multiple http connection to server?
I'm trying to send data for about 40kb, i send the data into 80 parts ( a part about 500 bytes)..
is it possible to make about 80 thread in the same time??
I do this way to reduce time consumption...
Help me please..

No, in this case, more threads will most likely slow down the data transfer:
- more threads means more TCP connections, means more overhead
- CPU scheduling will make it slower than using one thread, they can't work symultanious anyway
- One thread is probably already capable of fully filling the network bandwidth with data

Similar Messages

  • How to post multiple http requests using a single http connection in java

    I am using the httpurlconnection class and it allows only to post one request on a connection. I require to post multiple http requests by opening a single connection. Code examples please. Thanx in advance.

    Hi
    I found this article through Google. I hope it helps a little
    http://www.developer.com/tech/article.php/761521
    D

  • No HTTP Connection until after multiple reboots.

    I seem to lose my HTTP connectivity but FTP seems to work as well as local network connectivity. 
    After the computer has been on for 24 hours plus and I wake it up from sleep mode I lose the ability to see HTTP traffic (websites).  But I was able to see a pdf from a site (this may have been cached).  When I reboot an unknown app seems to hang
    the shutdown and I frequently have to hold the power button to shutdown. When it does reboot I have to shutdown from the "Select User/logon" screen. At this shutdown it goes just fine.  Then finally upon the next restart it will then connect
    to internet websites. 
    Other computers on my local network seem to connect to the internet just fine.  So it does not seem to be a router issue. I have tried the other users on the computer and they seem to work just fine also.  I have scanned the computer for Viruses
    via MacAffee and nothing was detected.  I have ran IPConfig commands (release, renew, etc) and nothing seems to work. I do see the DNS server for my internet provider (Comcast).  
    I think the failure to shutdown is a clue.  When I worked on the Win 98 a similar issue used to occur because of a network card driver issue.  I have checked my driver for updates and I am running the latest version. 
    Summary. 
    No website viewing
    Local network seems fine
    Hangs on shutdown
    Needs two shutdowns to start working
    I have ran ipconfig (renew, release, etc)
    I have updated the Driver for the network card 
    (Wireless or Cat-5 network connection same result)

    Hi,
    Firstly, Please check NIC driver properties in Device Manager, Make sure the option "Allow the computer to turn off this device to save power" was unchecked.
    Secondly please check Event Viewer if it identify this problem.
    About Device driver update, If your computer was OEM, it would be better to check update at its official site.
    In addition, to fix this problem, please try to use command netsh winsock reset to reset winsock for test.
    Roger Lu
    TechNet Community Support

  • Webdynpro ABAP/Portal. Plugin HTTP connection issue on WaitingEventQueue.js

    Hello,
    We are experiencing a strange Portal Behavior with our Webdynpros. Our portal contains several iViews including some Webdynpro (ABAP) and some reporting transaction calls that use SAPgui for HTML.
    When portal is called for the first time and a user logs in, two connections of type RFC can be seen for that user in SM04 in our ERP system. All iViews work as expected. For example, calling the Time Management webdynpro closes one of the RFC connections and starts a new Pluguin HTTP connection. We can go back and forth between the welcome page and this Webdynpro with no issues.
    If we then select one of the reporting transaction codes, the portal launches the SAPGUI for HTML. Report retrieves and shows data, and then we close using the "Exit" button provided by the sapgui for HTML
    Next we try again to launch any webdynpro (abap), but SM04 shows that the new Plugin HTTP session gets stuck and spinning mid way, and will stay there. Refreshing the Portal screen with F8, navigating back and forth, logging off and on again has no effect. The webdynpros will not launch again. Only webdynpros are affected, any of the reporting transactions can be called successfully over and over.
    We have figured that deleting Temporary Internet files (we are using IE 7), and in particular by just deleting the WaitingEventQueue.js?XXXXXXXXXXX file, the system will break away from the spin loop and show the webdynpro again, but eventually it will get stuck again, and asking the users to delete their Temporary Internet Files every 5 minutes is not a workable solution
    I have reviewed the contents of this javascript file at different points during the test, and the contents do not change, so deleting the file and the recreate process must be resetting somehow the queue and allowing for a new correct communication.
    Is there a way to properly reset this event queue (for example from ABAP, when the webdynpros are reloaded) in order to avoid the spin loop?
    Thanks for any help!
    Andres

    Well, we got the issue resolved, so here is what we did, in case anybody is interested:
    Tested again our portal with multiple versions of Internet Explorer, in particular IE8 and IE6, the Webdynpro behavior was normal (no timeouts or locks). It even worked when we installed IE7 in a brand new machine and tried our portal.
    So we started suspecting if maybe the particular IE7 that we install internally (with specific settings and policies) may be the culprit. We took a desktop that was producing the timeouts and used the following options in IE7:
    Tools->Internet Options->Advanced(tab)-Reset Internet Explorer settings
    and, voila! the next time we ran there, the portal did not create any timeouts.
    We even asked our desktop support team to uninstall and reinstall IE7 in the same machine after we did the reset, and even after the re-install that the timeout problems did not re-appear.
    One of the things that the "reset" option does is delete the Add-ons used by IE.
    So as a last test, we took a machine that was presenting the problem and went to the Internet Options to disable all the add-ons (in the Programs Tab). The error disappeared.
    And even after enabling back all the add-ons, the error would not return.
    Conclusion:
    Without being able to pinpoint the specific add-on (or combination) that causes the problem, we suspect that some of them conflicted, causing IE7 to behave abnormally. Disabling them all, restarting Internet Explorer, and enabling them again, makes the WaitingEventQueue.js work as it should

  • Multiple db connections for one report

    Hi all,
    I am using Oracle Reports 10g R2. Could someone tell me if Oracle Reports supports multiple database connections for one rdf file, like this (using servlet)
    http://your_web_server:port_num/reports/rwservlet?server=server_name&report=myreport.rdf& userid1=username/password@my_db1&userid2=username/password@my_db2 &desformat=pdf&destype=cache
    I am asking this question because my report needs data from two separate Oracle databases.
    Edited by: user12239004 on Apr 27, 2010 2:14 AM

    No, you can only have one login.
    However, this is simple to resolve by creating a database link in one database to the other database.

  • PI internal error : HTTP connection to ABAP Runtime failed

    Hi Experts,
    From last 3 days,I am geting a SAP PI internal error(PFA for the detail).for that error,previous sucessful scenario also not working.The error I am getting in the 'TEST CONFIGURATION' of the ID:(sometimes i am getting this error in ' Receiver Determination' and sometimes in 'interface determination & mapping')
    [ Receiver Determination
    <Not found>
    Internal Error
    HTTP connection to ABAP Runtime failed. Error: Unexpected end of file from server URL: http://deveppi103:8002/sap/xi/simulation?sap-client=117 User: PIDIRUSER ]
    Please,suggest.
    Regards,
    Raj Tripathy

    Hi Raj,
    We had faced this issue a few days back and there was an entry missing in the table.
    This issue has been discussed on this forum multiple times:
    Prefix number: entry missing for system TST client
    workflow- Prefix number: entry missing for system xxx Client xxx
    Regards,
    Sanjeev.

  • HTTP Connection timeout setting

    Hi,
    I'm using ebXML protocol for B2B 10.1.2.3+MLR 5.
    I talk to multiple trading partners and when one of the TP is down, we see that there is a pileup of messages in the backend queues.
    This is because, there is constant message inflow into the JMS queues by the back-end application and each message is taking a long time to timeout (nearly 20 seconds). So what effectively happens is that a message was supposed to reach the TP in 1 sec will take 20 sec before it labels as a HTTP connection timeout error .
    Can we set the HTTP Connection timeout setting in B2B? (I saw a setting in B2BGurus for EDI though)
    If not, please can you suggest if it can be set in the Application Server level?
    Please help!
    Thanks in advance,
    Warm Regards,
    Suhas.

    All,
    At the application server level, there is a timeout setting in httpd.conf. The default value has been set to 300 seconds.
    Regards,
    Suhas.

  • Multiple Incoming Connections to Skype

    Hi!
    When I initiated a call today, I began being bombarded by multiple incoming connection attempts from many different IPs, from many parts of the world. I couldn't deny all incoming connections, obviously, so I set it to allow all so I could finish the call without playing whack-a-mole.
    What are these connection attempts about? And, if they're malicious, what kind of rule should I set to block them?

    Hi,
    Is the customer trying to login with a single username for more than 3 times?
    If yes, and you want to change the simultaneous login then edit the group-policy and vpn-simulateously -login parameter. vpn-simulatenous-login is set to 3 by default.
    The following link gives details of the same:
    http://www.cisco.com/en/US/products/ps6120/products_tech_note09186a00807e0aca.shtml#vpnc-sol-1
    Hope this helps.
    Regards,
    Anisha
    P.S.: please mark this thread as answerd if you feel your query is resolved. Do rate helpful posts.

  • Multiple SharePoint Connections Appearing

    Has anyone else encountered multiple SharePoint connections appearing for the same server in Office 2013.  We are using Office 365 and I work on office across multiple devices.  This anomaly seemed to pop up when I started using Office for iPad,
    though I've no idea if its connected.  I can remove the extra account and then all works fine, but on reboot the extra account reappears and then I can't open files from the web interface - most frustrating.

    Hi,
    It could be that the cache for the account was still being stored in the registry.
    I suggest you try the method below to delete the Office profile that may still be cached:
    Important
    Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you modify it,
    back up the registry for restoration in
    case problems occur.
    From Registry Editor, browse to: HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Identity\Identities
    Choose the Office profile that you want to delete, and then choose Delete.
    From the Identity hive, navigate to the Profiles node, choose that same identity, open the shortcut menu (right-click), and then choose
    Delete.
    The steps above are quoted from this article below, you may also learn something useful from it:
    https://technet.microsoft.com/en-us/library/jj683102.aspx?f=255&MSPPError=-2147217396
    Regards,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Can the GPIB-ENET/100 handle multiple TCP connections?

    Can the GPIB-ENET/100 handle multiple TCP connections from multiple computers?
    -Daniel

    Yes, the GPIB-ENET/100 can handle multiple TCP connections.
    To safely access the same GPIB-ENET/100 or GPIB-ENET from multiple applications on one or more computers at the same time, use the iblck function. The iblck function prevents one application from interrupting a call made to the GPIB-ENET/100 or GPIB-ENET from another application. Without it, one application could cause an I/O operation initiated by another application to abort or cause other unexpected behavior.
    Check the NI-488.2 User Manual for more details:
    http://www.ni.com/pdf/manuals/370428a.pdf
    Winston L.
    National Instruments

  • Making https: connection from java code loaded into Oracle 8i database

    A bit of a blast from the past, really, as 8i provides a JVM at 1.2.2.
    I need to provide an PL/SQL function which accesses a RESTful web service requiring https connection. Got the call working under 1.2 locally without much trouble using:
    static {
            System.setProperty("java.protocol.handler.pkgs",
                    "com.sun.net.ssl.internal.www.protocol");
            Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
        }The trick is to get the Oracle database to run the code internally. What libraries do I need where? I get an extremely unhelpful NoClassDefFoundError, without mention of the offending class.
    By doing loadjava with jcert.jar,. jnet.jar and jsse.jar (the libraries I'm using with the test program) I can get loadjava to accept and allegedly resolve the class.

    endasil wrote:
    malcolmmc wrote:
    Well, sadly look at the colour scheme.Yeah, sarcastic was I. The NoClassDef error seriously doesn't give a class name? I find it astonishing that any implementation would be that stupid.Seriously. The strange thing is that before I got to the NoClassDefFound I had a Initialization error (until I added a security rule for setting the Provider) and for that I got a full stack trace (in an obscure trace file, granted).

  • Https Connection from servlets using JSSE.

    Hi all,
    Although my question is the same as the QOW for this week, there is an error "unsupported keyword EMAIL" returned when i try to establish a https connection using servlet. The error log is as follow:
    =====================================
    java.io.IOException: unsupported keyword EMAIL
    at com.sun.net.ssl.internal.ssl.AVA.<init>([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.RDN.<init>([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.X500Name.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.X500Name.<init>([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getInputStream([DashoPro-V1.2-120198])
    at URLReader.doGet(URLReader.java:78)
    ===================================
    Does anyone know the meaning of this error?
    I try to write a java application using the similar code and it totally works fine(i can connect to the server and obtain the page). Does JSSE support Java Servlet? Or this is the problem of tomcat server? FYI, I'm using
    Tomcat 3.2.2
    Java SDK 1.3
    Many thanks!
    Ethan
    p.s. Here is the source for my program
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.net.*;
    import javax.net.ssl.*;
    import com.sun.net.ssl.*;
    public class URLReader extends HttpServlet{
    private PrintWriter out = null;
    public void doGet(HttpServletRequest req, HttpServletResponse res){
    res.setContentType("text/html");
    res.setHeader("Cache-Control", "no-cache");
    res.setHeader("Progma", "no-cache");
    out = res.getWriter();
    java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    System.setProperty("javax.net.ssl.trustStore", "File_for_keyStore");
    System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
    try {
         URL url = new URL("https://server_name:port/index.htm");
         HttpsURLConnection urlconnection = (HttpsURLConnection)url.openConnection();
         BufferedReader in = new BufferedReader(new InputStreamReader(urlconnection.getInputStream()));
         String outputLine ;
         while ( (outputLine = in.readLine()) != null){
         out.println("There is the result: "+outputLine);
         in.close();
    catch(Exception e){
    public void doPost(HttpServletRequest req, HttpServletResponse res){
    }

    I was just having this issue, after months of error-free ssl behavior, on a new machine i was installing (Note: that I was running the IBM jdk1.3) It turns out that when I was editing the java.security file to know about JCE/JSSE providers i had the providers in the wrong order. The Error causing sequence was:
    security.provider.1=com.sun.net.ssl.internal.ssl.Provider
    security.provider.2=com.ibm.crypto.provider.IBMJCA
    # Extra provider added ibm@33894
    security.provider.3=com.ibm.crypto.provider.IBMJCE
    # extra provider i added
    security.provider.4=sun.security.provider.Sun
    The issue disappeared when i changed the order to:
    security.provider.1=sun.security.provider.Sun
    security.provider.2=com.sun.net.ssl.internal.ssl.Provider
    security.provider.3=com.ibm.crypto.provider.IBMJCA
    # Extra provider added ibm@33894
    security.provider.4=com.ibm.crypto.provider.IBMJCE
    hope that helps!
    --john molnar
    Trellis Network Security

  • HTTPS connection from servlet to another webserver

    Hi,
    We want to make a https connection from a servlet in weblogic server to another
    web server (not necessarily weblogic). We also need dual authentication. But whenever
    we use URL.openConnection(), it always returns us weblogic's internal https and
    SSL implementation. Since weblogic has no documentation about how to use these
    internal classes, such as how to set trusted server certificate, and how to set
    client certificate (servlet is a client of another web server). We want to use
    jsse, after setting JSSE required system properties, I still get a weblogic's
    httpsURLConnection. Can any of you tell me how to resolve this issue?
    Thanks.
    Xinshi

    Yeah, I'm using JSSE now. Here is what I did:
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provide());
    Provider prov = new SimpleSecureProvider();
    prov.setProperty("SecureRandom.efficient", "test.EfficientSecureRandom");
    Security.insertProviderAt(prov, 1);
    You don't really need the provider stuff to get the example working. I use it
    to get around a quick in JSSE where the random number generator takes 15-30 seconds
    to generate a random sequence at start up.
    SimpleSecureProvider looks like this:
    public class SimpleSecureProvider extends Provider
    public SimpleSecureProvider()
    super("SimpleSecureProvider-", 1.0, "Hack to enable more efficient random
    seed generator");
    test.EfficientSecureRandom is bascially an exact copy of Sun's SecureRandom.java
    with the only difference that I used my own random number generator.
    Anyway, rest of the code you need looks like this:
    URL url= new URL("htps://someplace.com");
    URLConnection sconnection = url.openConnection();
    Do whatever.
    I also stored jcert.jar, jnet.jar, jsse.jar in /usr/java/jdk1.3/lib/ext
    I think that is everything.
    I just noticed that service pack 9 has a security example that does not require
    all these jsse hacks. I'm trying to get it to work, but not having much luck.
    Anybody got this working right?
    "Jayesh Patel" <[email protected]> wrote:
    See if this works,
    1. Add the 'j2ee.jar' to CALSSPATH in weblogic startup script.
    2. Set the property SSLHandlerEnabled flase in config.xml
    3. Add the following property permission to the
    weblogic.policy' file under a 'grant' directive
    for all codebases (bottom): 'permission java.security.AllPermission'
    4. Use the following bit of source code to create an https connection:
    import com.sun.net.ssl.*; ....
    com.sun.net.ssl.HttpsURLConnection connection;
    System.setProperty ("java.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol");
    java.security.Security.addProvider(new
    com.sun.net.ssl.internal.ssl.Provider() );
    URL url = new URL( "https", hostname, query );
    -Jayesh
    connection = (com.sun.net.ssl.HttpsURLConnection )url.openConnection(
    "Xinshi Sha" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    We want to make a https connection from a servlet in weblogic serverto
    another
    web server (not necessarily weblogic). We also need dual authentication.But whenever
    we use URL.openConnection(), it always returns us weblogic's internalhttps and
    SSL implementation. Since weblogic has no documentation about how
    to
    use
    these
    internal classes, such as how to set trusted server certificate, andhow
    to set
    client certificate (servlet is a client of another web server). Wewant to
    use
    jsse, after setting JSSE required system properties, I still get aweblogic's
    httpsURLConnection. Can any of you tell me how to resolve this issue?
    Thanks.
    Xinshi

  • HTTPS connection from database

    Hi all,
    I have to implement https connection from a database with a Web server which requests a client certificate. I have the certificate in the wallet, but UTL_HTTP does not send it to the Web server.
    So, is there any way to connect to a Web server which requires a client certificate?

    Could you explain how transport protocol influences certificate exchange during SSL session?

  • HTTPS connection from portal to external webserver

    Hi,
    I am looking for a way to open a HTTPS connection from portal server to an external webserver. According to <a href="http://help.sap.com/saphelp_nw04/helpdata/en/e2/71c83edf72e16be10000000a114084/content.htm">SAP</a> the code should look like
    KeyStore keystoreCAs = ...
    SecureConnectionFactory factory = new SecureConnectionFactory(keystoreCAs, null);
    HttpURLConnection con = factory.createURLConnection("https://www.mycompany.com");
    Does not look difficult, <b>but how do I create the keystore object</b>? The keystore object should somehow be connected to the portal server's keystore which manages the certificates of trusted Certificate Authorities.
    Any ideas?
    Regards,
    Martin

    Hi,
    meanwhile I solved the problem by my own. The solution slightly simplified is given below.
    javax.naming.InitialContext ctx = new javax.naming.InitialContext();
    java.lang.Object o = ctx.lookup("keystore");          
    com.sap.engine.services.keystore.interfaces.KeystoreManagerWrapper_Stub manager = (com.sap.engine.services.keystore.interfaces.KeystoreManagerWrapper_Stub) o;
    java.security.KeyStore keystoreCAs = manager.getKeystore("TrustedCAs");     
    com.sap.security.core.server.https.SecureConnectionFactory factory = new SecureConnectionFactory(keystoreCAs, null);
    java.net.HttpURLConnection con = factory.createURLConnection("https://www.mycompany.com");
    For connecting via a proxy the host name and port number of the proxy have to be set as System properties using "https.proxyHost" and "https.proxyPort".
    java.util.Properties systemSettings = System.getProperties();
              systemSettings.put("proxySet", "true");
              systemSettings.put("https.proxyHost","192.168.0.1") ;
              systemSettings.put("https.proxyPort", "80") ;
    Additionally you have to make sure that the server's certificate is issued by a trusted Certification Authority (Must have an entry in your Keystore "TrustedCAs"). To verify this use the Visual Administrator and view service "Key Storage".
    Regards,
    Martin

Maybe you are looking for

  • COMPUTERS AND ITUNES WILL NOT RECOGNIZ MY IPOD NANO

    MY NANO IPOD IS NOT RECOGNIZED BY MY COMPUTERS OR ITUNES.   WHEN I TRY TO SYNC IT IS IN GREY AND WILL NOT LET ME SYNC

  • Available the "input data", in BPC version 10

    Why do not I have available the "Data Input", in BPC version 10? What permissions should I have? ... I check Use as Input Form option,  General tab in Sheet Options;   but not available  "Data Input"  in Ribon EPM Edited by: Ilda Rojas on Feb 8, 2012

  • Reinstalling Photoshop CC after disk failure

    My iMac tells me its hard drive is failing. I have a subscription to Photoshop CC, and I have the disk for Lightroom, as I bought it before I subscribed. After my new hard drive is installed, I can reinstall LR from the disk, but how do I get Photosh

  • Peoplesoft or SAP -HR ?

    Which has more demand in the current job market ? -  Peoplesoft or SAP - HR ? I am planning to take up one of these two and do a complete course/certification on it . Pls advice

  • System Centre 2012 schematic overview and component interactions

    Hi, I am trying to locate A3 size (Visio preferably) schematic overviews of System Centre 2012 and all of the underlying components. I want to demonstrate the product to my executives to demonstrate what each component does. I have search the net for