Menu

#11 get_miniserver_sockets() breakage in 1.2.1?

open
nobody
None
5
2003-06-09
2003-06-09
Wang Jian
No

Because linux-igd 0.92 + upnpsdk 1.0.4 = memory
leakage every second (with Windows XP clients getting
connection status), I choose to port linux-igd 0.92 to
libupnp 1.2.1. To my surprise, after I do
Upnp_Document -> IXML_Document & Upnp_ParseBuffer
() -> ixmlParseBuffer() transition, and copy new sample
files, and manage to compile linux-igd, the upnpd
doesn't work

Jun 9 22:42:05 home upnpd: ipaddress=192.168.0.254
port=2869
Jun 9 22:42:05 home upnpd:
conf_dir_path=/etc/linuxigd/
Jun 9 22:42:05 home upnpd: UPnP Initialization
Completed
Jun 9 22:42:05 home upnpd: Setting webserver root
directory -- /etc/linuxigd/
Jun 9 22:42:05 home upnpd: Registering the root
device
Jun 9 22:42:05 home upnpd: Error registering the
rootdevice : -204

At last I find that get_miniserver_sockets() in
src/genlib/miniserver/miniserver.c is the cause.

<code>
// As per the IANA specifications for the use of ports
by applications
// override the listen port passed in with the first
available
if( listen_port < APPLICATION_LISTENING_PORT )
listen_port = APPLICATION_LISTENING_PORT;
</code>

This breaks 2869/TCP Host Service.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.