miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

UPNP_AddPortMapping() returns success also when it fails

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Bugs
View previous topic :: View next topic  
Author Message
dreijer



Joined: 16 Mar 2010
Posts: 7

PostPosted: Thu Jun 03, 2010 4:40 pm    Post subject: UPNP_AddPortMapping() returns success also when it fails Reply with quote

If you discover devices and you subsequently lose network connectivity (or UPnP is manually disabled on the router) and then go and attempt to map a port, UPNP_AddPortMapping() returns 0 even though it clearly fails:
Code:
Socket error: connect, 0
Error or no result from SOAP request; retrying with HTTP/1.1
Socket error: connect, 0
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Wed Jun 09, 2010 11:05 am    Post subject: Reply with quote

Thanks for the bug report.

For the fix, look at this :
miniupnpc-1.4.20100609.tar.gz
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
dreijer



Joined: 16 Mar 2010
Posts: 7

PostPosted: Wed Jun 09, 2010 1:42 pm    Post subject: Reply with quote

Thanks, I'll take a look when I get some free time!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.