62 /* |
62 /* |
63 * we reuse the old listener, but change the |
63 * we reuse the old listener, but change the |
64 * ServerConfiguration and VirtualServer |
64 * ServerConfiguration and VirtualServer |
65 */ |
65 */ |
66 http_listener_ref(ls); |
66 http_listener_ref(ls); |
67 ls->cfg = cfg; |
|
68 |
67 |
|
68 // TODO: this is non atomar |
69 sstr_t vsname = ls->default_vs.vs->name; |
69 sstr_t vsname = ls->default_vs.vs->name; |
70 ls->default_vs.vs = ucx_map_sstr_get(cfg->host_vs, vsname); |
70 ls->default_vs.vs = ucx_map_sstr_get(cfg->host_vs, vsname); |
|
71 ls->cfg = cfg; |
71 |
72 |
72 return ls; |
73 return ls; |
73 } |
74 } |
74 |
75 |
75 static void* copy_vs(void *vserver, void *pool) { |
76 static void* copy_vs(void *vserver, void *pool) { |