VirtualBox

Ignore:
Timestamp:
Jul 18, 2019 4:05:52 PM (5 years ago)
Author:
vboxsync
Message:

IPRT/rest: RTCRestClientApiBase::reinitHttpInstance - RTHTTP no longer
gets confused about proxy settings after RTHttpReset(), so drop the
workaround that re-created it for each roundtrip to the cloud.
Speeds things up quite a bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/rest/RTCRestClientApiBase.cpp

    r78281 r79862  
    176176{
    177177    if (m_hHttp != NIL_RTHTTP)
    178     {
    179 #if 0   /** @todo XXX: disable for now as it causes the RTHTTP handle state and curl state to get out of sync. */
    180178        return RTHttpReset(m_hHttp, 0 /*fFlags*/);
    181 #else
    182         RTHttpDestroy(m_hHttp);
    183         m_hHttp = NIL_RTHTTP;
    184 #endif
    185     }
    186179
    187180    int rc = RTHttpCreate(&m_hHttp);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette