Skip to content

Commit 3f5c1ea

Browse files
tests: fixed one test case in t/165-serversslhandshake.t.
1 parent 1157c4c commit 3f5c1ea

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

t/165-serversslhandshake.t

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,13 @@ __DATA__
3232
return
3333
end
3434

35-
ngx.say("method exists: ", type(sock.serversslhandshake) == "function")
35+
local method_exists = type(sock.serversslhandshake) == "function"
3636

37+
-- Do not write to the downstream before the handshake, otherwise
38+
-- the buffered output would trip the "socket busy writing" guard.
3739
local session, err = sock:serversslhandshake()
40+
41+
ngx.say("method exists: ", method_exists)
3842
ngx.say("error: ", err or "unexpected success")
3943
}
4044

0 commit comments

Comments
 (0)