From: Jay Freeman (saurik) <saurik@saurik.com>
Date: Sat, 26 Feb 2011 16:11:00 +0000 (-0800)
Subject: Split PipelinedHosts_ from BridgedHosts_.
X-Git-Tag: v1.1.0%b1~148
X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/834c18a40b98da3d3cbccfeb84d266b954a81f25

Split PipelinedHosts_ from BridgedHosts_.
---

diff --git a/MobileCydia.mm b/MobileCydia.mm
index 1ac856ed..af616c4c 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -1087,6 +1087,7 @@ static CGFloat ScreenScale_;
 static NSString *Idiom_;
 
 static NSMutableSet *BridgedHosts_;
+static NSMutableSet *PipelinedHosts_;
 
 static NSString *kCydiaProgressEventTypeError = @"Error";
 static NSString *kCydiaProgressEventTypeInformation = @"Information";
@@ -4209,6 +4210,8 @@ static NSMutableSet *Diversions_;
     if (false);
     else if (selector == @selector(addBridgedHost:))
         return @"addBridgedHost";
+    else if (selector == @selector(addPipelinedHost:))
+        return @"addPipelinedHost";
     else if (selector == @selector(addTrivialSource:))
         return @"addTrivialSource";
     else if (selector == @selector(close))
@@ -4321,6 +4324,10 @@ static NSMutableSet *Diversions_;
     [BridgedHosts_ performSelectorOnMainThread:@selector(addObject:) withObject:host waitUntilDone:NO];
 }
 
+- (void) addPipelinedHost:(NSString *)host {
+    [PipelinedHosts_ performSelectorOnMainThread:@selector(addObject:) withObject:host waitUntilDone:NO];
+}
+
 - (void) popViewController:(NSNumber *)value {
     if (value == (id) [WebUndefined undefined])
         value = [NSNumber numberWithBool:YES];
@@ -10027,7 +10034,7 @@ MSHook(id, NSURLConnection$init$, NSURLConnection *self, SEL _cmd, NSURLRequest
     NSString *host([url host]);
 
     if ([copy respondsToSelector:@selector(setHTTPShouldUsePipelining:)])
-        if ([BridgedHosts_ containsObject:host])
+        if ([PipelinedHosts_ containsObject:host])
             [copy setHTTPShouldUsePipelining:YES];
 
     if ((self = _NSURLConnection$init$(self, _cmd, copy, delegate, usesCache, maxContentLength, startImmediately, connectionProperties)) != nil) {
@@ -10065,6 +10072,7 @@ int main(int argc, char *argv[]) { _pooled
     }
 
     BridgedHosts_ = [NSMutableSet setWithCapacity:2];
+    PipelinedHosts_ = [NSMutableSet setWithCapacity:2];
 
     UI_ = CydiaURL([NSString stringWithFormat:@"ui/ios~%@", Idiom_]);