From yut616@21cn.com Fri May 6 12:21:05 2011 X-Original-To: gupnp@o-hand.com Delivered-To: gupnp@o-hand.com Received: from 21cn.com (unknown [59.36.102.60]) by pug.o-hand.com (Postfix) with ESMTP id B51FE12EC00A for ; Sun, 7 Mar 2010 11:02:40 -0600 (CST) HMM_SOURCE_IP:10.27.2.3:46102.640935463 HMM_ATTACHE_NUM:0000 HMM_SOURCE_TYPE:SMTP Received: from as3-smtp?dg (dgproxy3.inner-hermes.com [10.27.2.3]) by 21cn.com (HERMES) with ESMTP id 1F0C23809E for ; Mon, 8 Mar 2010 00:39:50 +0800 (CST) Received: from 19ba841555dc477([61.171.75.77]) by as3-smtp@dg(Knowledge-based Antispam Gateway 2.127s39k(2009-09-27),59.36.102.12) with ESMTP id local30177.1267979980 for ; Mon, 08 Mar 2010 00:39:53 +0800 (CST) X-Original-AuthLogin: yut616@21cn.com Date: Mon, 8 Mar 2010 00:39:49 +0800 From: "yut616" To: "gupnp" Subject: [gupnp] upnp dev tool Message-ID: <201003080039369412812@21cn.com> X-mailer: Foxmail 6, 15, 201, 22 [cn] Reply-To: gupnp@o-hand.com Precedence: list List-Id: gupnp mailing list List-Unsubscribe: List-Archive: http://lists.o-hand.com/gupnp/ List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====003_Dragon256772065258_=====" This is a multi-part message in MIME format. --=====003_Dragon256772065258_===== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit It is interesting that UPnP tool becomes open source project. http://opentools.homeip.net/dev-tools-for-upnp --=====003_Dragon256772065258_===== Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit
It is interesting that UPnP tool becomes open source project.
 
 
 
--=====003_Dragon256772065258_=====-- -- To unsubscribe send a mail to gupnp+unsubscribe\@o-hand.com From s.neumann@raumfeld.com Fri May 6 12:21:05 2011 X-Original-To: gupnp@o-hand.com Delivered-To: gupnp@o-hand.com Received: from mail.bugwerft.de (mail.bugwerft.de [212.112.241.193]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by pug.o-hand.com (Postfix) with ESMTP id 51C9812EC00B for ; Thu, 18 Mar 2010 07:03:19 -0500 (CDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.bugwerft.de (Postfix) with ESMTP id B2D9C8F84C4; Thu, 18 Mar 2010 12:39:53 +0100 (CET) Received: from mail.bugwerft.de ([127.0.0.1]) by localhost (rambrand.caiaq.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yK3yZOgbc4S1; Thu, 18 Mar 2010 12:39:53 +0100 (CET) Received: from localhost.localdomain (p4FE23B7A.dip.t-dialin.net [79.226.59.122]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bugwerft.de (Postfix) with ESMTPSA id 72F8C8F84C2; Thu, 18 Mar 2010 12:39:53 +0100 (CET) From: Sven Neumann To: gupnp@o-hand.com Cc: Sven Neumann Subject: [gupnp] [PATCH] Remove soup handler before emitting signals Date: Thu, 18 Mar 2010 12:39:49 +0100 Message-Id: <1268912389-31349-1-git-send-email-s.neumann@raumfeld.com> X-Mailer: git-send-email 1.6.0.4 Reply-To: gupnp@o-hand.com Precedence: list List-Id: gupnp mailing list List-Unsubscribe: List-Archive: http://lists.o-hand.com/gupnp/ List-Post: List-Help: List-Subscribe: If a (re)subscription fails, remove the soup server handler before emitting the "subscription-lost" signal. This fixes a potential crash if the application code unreferences the GUPnPServiceProxy in response to the signal. Signed-off-by: Sven Neumann --- libgupnp/gupnp-service-proxy.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c index cc8700f..c778899 100644 --- a/libgupnp/gupnp-service-proxy.c +++ b/libgupnp/gupnp-service-proxy.c @@ -1773,6 +1773,13 @@ subscribe_got_response (SoupSession *session, msg->reason_phrase); hdr_err: + /* Remove listener */ + context = gupnp_service_info_get_context + (GUPNP_SERVICE_INFO (proxy)); + + server = gupnp_context_get_server (context); + soup_server_remove_handler (server, proxy->priv->path); + proxy->priv->subscribed = FALSE; g_object_notify (G_OBJECT (proxy), "subscribed"); @@ -1784,13 +1791,6 @@ hdr_err: error); g_error_free (error); - - /* Remove listener */ - context = gupnp_service_info_get_context - (GUPNP_SERVICE_INFO (proxy)); - - server = gupnp_context_get_server (context); - soup_server_remove_handler (server, proxy->priv->path); } } -- 1.6.0.4 -- To unsubscribe send a mail to gupnp+unsubscribe\@o-hand.com From ross@openedhand.com Fri May 6 12:21:05 2011 X-Original-To: gupnp@o-hand.com Delivered-To: gupnp@o-hand.com Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa [81.2.106.35]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by pug.o-hand.com (Postfix) with ESMTP id 2AFD312EC1F0 for ; Thu, 18 Mar 2010 07:13:23 -0500 (CDT) Received: by flashheart.burtonini.com (Postfix, from userid 1000) id 6275DFE0E6; Thu, 18 Mar 2010 11:49:36 +0000 (GMT) Subject: Re: [gupnp] [PATCH] Remove soup handler before emitting signals From: Ross Burton To: gupnp@o-hand.com In-Reply-To: <1268912389-31349-1-git-send-email-s.neumann@raumfeld.com> References: <1268912389-31349-1-git-send-email-s.neumann@raumfeld.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Thr5P4Q620eKWADZt0fv" Organization: Opened Hand Ltd Date: Thu, 18 Mar 2010 11:49:36 +0000 Message-ID: <1268912976.12727.14.camel@flashheart.burtonini.com> Reply-To: gupnp@o-hand.com Precedence: list List-Id: gupnp mailing list List-Unsubscribe: List-Archive: http://lists.o-hand.com/gupnp/ List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 --=-Thr5P4Q620eKWADZt0fv Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2010-03-18 at 12:39 +0100, Sven Neumann wrote: > If a (re)subscription fails, remove the soup server handler before > emitting the "subscription-lost" signal. This fixes a potential crash > if the application code unreferences the GUPnPServiceProxy in response > to the signal. Pushed, thanks. Ross --=20 Intel Open Source Technology Centre http://oss.intel.com/ --=-Thr5P4Q620eKWADZt0fv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQBLohNOLQnkR9C0M98RAhdHAKDaGL84uZvKAMZVuKsv8wPlm9lQDwCfU+3o BUGwO2TC3uiem2Ij/787slQ= =KlZ8 -----END PGP SIGNATURE----- --=-Thr5P4Q620eKWADZt0fv-- -- To unsubscribe send a mail to gupnp+unsubscribe\@o-hand.com