AFNetworking + CocoaSPDY sends requests without receiving a response

I am trying to configure SPDY on AFNetworking, but I have problems understanding why I get timeouts.

I already tested my server on the SPDY check , and everything looks good.

I put this line of code in my method initWithBaseURL:(NSURL *)url

NSString *origin = [NSString stringWithFormat:@"%@:443",kAPIClientBaseURLString];
[SPDYURLConnectionProtocol registerOrigin:origin];

I get debug logs that look fine [/ p>

2013-12-23 15:26:37.889 Proj[42859:70b] SPDY [INFO] register origin: <SPDYOrigin: 0x19156fa0>
2013-12-23 15:26:37.890 Proj[42859:420f] SPDY [DEBUG] origin registered: <SPDYOrigin: 0x19156fa0>
2013-12-23 15:26:37.892 Proj[42859:441b] SPDY [INFO] start loading https://api.proj.mx:443/2/ursers/launching_info?param1=1&param2=2

Then, after a few seconds of waiting, I get

2013-12-23 15:28:07.994 Proj[42859:441b] SPDY [INFO] stop loading https://api.proj.mx:443/2/dr/drs?param1=1
2013-12-23 15:28:07.996 Proj[42859:441b] SPDY [WARNING] session connection error: Error Domain=SPDYSocketErrorDomain Code=6 "Unexpected end of stream." UserInfo=0x13e52710 {NSLocalizedDescription=Unexpected end of stream.}

And if I print an error, it displays as a timeout.

If I remove the SPDY integration (2 lines that I wrote above), everything will be as it should.

I really do not know what is happening, I will be grateful for any help and comments.

Thanks.

I changed the urls to avoid privacy and security issues.

+4
2

CocoaSPDY , SPDY , SPDY, SETTINGS .

, GFE , , , CocoaSPDY API Google.

? , , NPN , , SPDY, .

+2

SPDY?

socket:willDisconnectWithError:. [socket unreadData] .

, ( ) .

+1

All Articles