You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -194,7 +194,7 @@ local function handle_frame(self, typ, flag, streamid, payload, deadline)
194
194
localstream=self.streams[streamid]
195
195
ifstream==niland (notself.recv_goaway_lowestorstreamid<self.recv_goaway_lowest) then
196
196
ifxor(streamid%2==1, self.type=="client") then
197
-
returnnil, h2_error.errors.PROTOCOL_ERROR:new_traceback("Streams initiated by a client MUST use odd-numbered stream identifiers; those initiated by the server MUST use even-numbered stream identifiers"), ce.EPROTO
197
+
returnnil, h2_error.errors.PROTOCOL_ERROR:new_traceback("Streams initiated by a client MUST use odd-numbered stream identifiers; those initiated by the server MUST use even-numbered stream identifiers"), ce.EILSEQ
198
198
end
199
199
-- TODO: check MAX_CONCURRENT_STREAMS
200
200
stream=self:new_stream(streamid)
@@ -227,7 +227,7 @@ function connection_methods:step(timeout)
227
227
returnnil, err, errno
228
228
end
229
229
ifnotokthen
230
-
returnnil, h2_error.errors.PROTOCOL_ERROR:new_traceback("invalid connection preface. not an http2 client?"), ce.EPROTO
230
+
returnnil, h2_error.errors.PROTOCOL_ERROR:new_traceback("invalid connection preface. not an http2 client?"), ce.EILSEQ
231
231
end
232
232
self.has_confirmed_preface=true
233
233
end
@@ -238,7 +238,7 @@ function connection_methods:step(timeout)
238
238
-- flag might be `nil` on EOF
239
239
ok, connection_error, errno=nil, flag, streamid
240
240
elseifnotself.has_first_settingsandtyp~=0x4then-- XXX: Should this be more strict? e.g. what if it's an ACK?
241
-
ok, connection_error, errno=false, h2_error.errors.PROTOCOL_ERROR:new_traceback("A SETTINGS frame MUST be the first frame sent in an HTTP/2 connection"), ce.EPROTO
241
+
ok, connection_error, errno=false, h2_error.errors.PROTOCOL_ERROR:new_traceback("A SETTINGS frame MUST be the first frame sent in an HTTP/2 connection"), ce.EILSEQ
0 commit comments