http upstream keepalive issue

82 views
Skip to first unread message

kelong w

unread,
Dec 7, 2021, 9:48:39 PM12/7/21
to openresty-en
we have a scenario to use http upstream that there is 1 ipaddress host multi-domains for tls connection. for example 192.168.1.1 which have a.com and b.com on it.
When configure keepalive on this upstream. it reuse the wrong keepalive connection.
for example, first access a.com, then it is OK, the connection is keep, then access b.com,
it sill use the previous keeped connection and cannot create a new connection with new ssl handshake becaue the 2 domain on the same IP.
Is there any solution for this?  

Junlong li

unread,
Dec 8, 2021, 6:18:29 AM12/8/21
to openresty-en
https://github.com/openresty/lua-nginx-module/pull/1908

you can apply this PR on your own.

Junlong li

unread,
Dec 8, 2021, 6:19:59 AM12/8/21
to openresty-en
https://github.com/openresty/lua-nginx-module/pull/1600  this one also works but may need to resolve conflict.

kelong w

unread,
Dec 13, 2021, 5:20:23 AM12/13/21
to openresty-en
thanks, it's really helpful, further questions,
Does SSL session reuse still work after this change?
Is there a plan to include this change in official release?
Reply all
Reply to author
Forward
0 new messages