Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 374660 Details for
Bug 505934
www-apache/mod_jk-1.2.40 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
upsteam maintainer patch
mod_jk-1.2.39-display-ipaddr.patch (text/plain), 2.69 KB, created by
Guido Jäkel
on 2014-04-10 06:31:13 UTC
(
hide
)
Description:
upsteam maintainer patch
Filename:
MIME Type:
Creator:
Guido Jäkel
Created:
2014-04-10 06:31:13 UTC
Size:
2.69 KB
patch
obsolete
>--- tomcat/jk/trunk/native/common/jk_ajp_common.c 2014/03/31 18:53:38 1583398 >+++ tomcat/jk/trunk/native/common/jk_ajp_common.c 2014/03/31 19:00:34 1583399 >@@ -1117,7 +1117,7 @@ > aw->s->connected--; > } > } >- memcpy(&(aw->worker_inet_addr), &inet_addr, sizeof(inet_addr)); >+ jk_clone_sockaddr(&(aw->worker_inet_addr), &inet_addr); > JK_LEAVE_CS(&aw->cs); > } > >--- tomcat/jk/trunk/native/common/jk_connect.c 2014/03/31 18:53:38 1583398 >+++ tomcat/jk/trunk/native/common/jk_connect.c 2014/03/31 19:00:34 1583399 >@@ -328,6 +328,20 @@ > > #endif > >+/** Clone a jk_sockaddr_t >+ * @param out The source structure >+ * @param in The target structure >+ */ >+void jk_clone_sockaddr(jk_sockaddr_t *out, jk_sockaddr_t *in) >+{ >+ memcpy(out, in, sizeof(*in)); >+ /* The ipaddr_ptr member points to memory inside the struct. >+ * Do not copy the pointer but use the same offset relative >+ * to the struct start >+ */ >+ out->ipaddr_ptr = (void *)out + (in->ipaddr_ptr - (void *)in); >+} >+ > /** Resolve the host IP > * @param host host or ip address > * @param port port > } > >--- tomcat/jk/trunk/native/common/jk_connect.h 2014/03/31 18:53:38 1583398 >+++ tomcat/jk/trunk/native/common/jk_connect.h 2014/03/31 19:00:34 1583399 >@@ -38,6 +38,8 @@ > > #define JK_SOCKET_EOF (-2) > >+void jk_clone_sockaddr(jk_sockaddr_t *out, jk_sockaddr_t *in); >+ > int jk_resolve(const char *host, int port, jk_sockaddr_t *rc, void *pool, > int prefer_ipv6, jk_logger_t *l); > >--- tomcat/jk/trunk/native/common/jk_status.c 2014/03/31 18:53:38 1583398 >+++ tomcat/jk/trunk/native/common/jk_status.c 2014/03/31 19:00:34 1583399 >@@ -3390,7 +3390,7 @@ > /* This is not atomic and not thread safe */ > aw->port = port; > strncpy(aw->host, host, JK_SHM_STR_SIZ); >- memcpy(&(aw->worker_inet_addr), &inet_addr, sizeof(inet_addr)); >+ jk_clone_sockaddr(&(aw->worker_inet_addr), &inet_addr); > *side_effect |= JK_STATUS_NEEDS_PUSH | JK_STATUS_NEEDS_ADDR_PUSH; > } > } > >--- tomcat/jk/trunk/xdocs/miscellaneous/changelog.xml 2014/03/31 18:53:38 1583398 >+++ tomcat/jk/trunk/xdocs/miscellaneous/changelog.xml 2014/03/31 19:00:34 1583399 >@@ -40,6 +40,16 @@ > new documentation project for JK was started. > </p> > </section> >+<section name="Changes between 1.2.39 and 1.2.40"> >+ <br /> >+ <subsection name="Native"> >+ <changelog> >+ <fix> >+ Fix status worker display of worker IP address after name or port >+ was changed. (rjung) >+ </fix> >+ </changelog> >+ </subsection> > <section name="Changes between 1.2.37 and 1.2.39"> > <br /> > <subsection name="Native">
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 505934
:
373624
|
373626
|
374658
|
374660
|
374662
|
374692