-
Notifications
You must be signed in to change notification settings - Fork 233
Unexpected end of stream #21
Comments
Based on the logs it looks like you immediately received a data frame for stream id 1013478509 on connection, which is odd since you've only just opened a stream with id 1. Seems like there could be a server-side bug? Can you share any details about your server implementation? |
Same here. I'm using NGINX 1.5.10 with http_spdy_module which supports SPDY/3.1 and http://spdycheck.org agrees on that:
I've enabled SPDY on the same socket as normal HTTPS traffic:
Here's my log for a few parallel requests:
|
fdematos, I assume that you use a similar setup. I guess this is related to the fact that Secure Transport does not support NPN (as of iOS 7) and we're trying to use the same port for SPDY and standard HTTPS… |
If you are stuck using a single port, CocoaSPDY (and most other implementations) are guaranteed to send a SETTINGS frame first (or at least after SSL is established). This can be distinguished on the server from a normal HTTP request from as little as the first byte, if you can defer the rest of your pipeline setup until it's readable. |
ngnix 1.6.0
my cert is self-sign,so i add the follow code, make CFNetwork trust certs:
but then occur error like @fdematos Unexpected end of stream, do you resolve this problem ?
|
I have just same issue. Is it client or server side issue? |
Hi,
First I want to thanks you for providing this library.
Our server is setup to use SPDY but anytime I try to call a webservice, I got an error.
Logs are :
SPDY [WARNING] loaded DEBUG build of SPDY framework
SPDY [INFO] register origin: <SPDYOrigin: 0xc488c70>
SPDY [DEBUG] origin registered: <SPDYOrigin: 0xc488c70>
SPDY [INFO] start loading https://XXXXXXXX/sts/SecurityTokenService/UT
SPDY [INFO] session connecting to <SPDYOrigin: 0xc7b1910>
SPDY [DEBUG] session using TLS
SPDY [DEBUG] sent client SETTINGS
SPDY [DEBUG] sent WINDOW_UPDATE.0 (+10420224)
SPDY [DEBUG] sent SYN_STREAM.1
SPDY [DEBUG] sent DATA.1! (1161)
SPDY [DEBUG] socket connected to XXXXXXX
SPDY [DEBUG] socket read0
SPDY [DEBUG] received DATA.1013478509 (165)
SPDY [DEBUG] sent RST_STREAM.1013478509
SPDY [DEBUG] socket scheduling read1
SPDY [WARNING] session connection error: Error Domain=SPDYSocketErrorDomain Code=6 "Unexpected end of stream." UserInfo=0xc79eb40 {NSLocalizedDescription=Unexpected end of stream.}
SPDY [INFO] session connection closed
SPDY [INFO] stop loading https://XXXXXXXX/sts/SecurityTokenService/UT
Do you have any idea of the reason or causes of this problem.
Thanks in advance.
The text was updated successfully, but these errors were encountered: