xmlrpc-c & libwww hangs in WIN32 environment

I'm having some troubles with xmlrpc-c + libwww on Windows. I'm using the 
MinGW cross compiler environment, and for some reason, xmlrpc applications 
won't work. More precise, any calls hangs in a busy loop. I've identified 
the loop to these lines of code in xmlrpc_client.c:

    while (!info->is_done) 
	HTEventList_newLoop();

A network trace shows that a TCP connection is established, but no data is 
sent in either direction. 

When configuring libwww, I had to modify the configure script and
hardcode some values, for example the size of char * (since it's not
possible to test this when cross-compiling). Is it a better idea to
replace wwwconfig.h with http://www.w3.org/Library/src/windows/config.h?

I've enabled debugging with HTSetTraceMessageMask("sop"); a log is 
included below. Any ideas of what may cause this, or how to narrow down 
the problem?

Details of my environement:
Build host: RedHat Linux 7.1
Compiler & environ: GCC 3.2, latest binutils, latest MinGW distribution
Libwww version: 5.4.0
xmlrpc-c version: 0.9.10
Target host: Windows 2000, with upgrades

Trace of Win32ClientTest (from xmlrpc-c):

Conversions. Adding 004498D0 with quality 10.00
Request..... Created 006BC0B0
ChunkStream. Chunk 006BC200 created with max size 0
Net After... Add 004027A0 with order 65535 tmplate `<null>' code 1 context 
00000000
HTAccess.... Accessing document http://maggie/RPC2
Net Before.. calling 00415F10 (request 006BC0B0, context 00000000)
Net Before.. calling 00415E30 (request 006BC0B0, context 00000000)
Net Object.. 006BD1C8 created with hash 0
Net Object.. starting request 006BC0B0 (retry=1) with net object 006BD1C8
HTTP........ Looking for `http://maggie/RPC2'
HTHost parse Looking up `maggie' on port 80
Event....... Created event 006BD138 with context 006BDCF8, priority 20, 
and timeout -1
Event....... Created event 006BD188 with context 006BDCF8, priority 20, 
and timeout -1
Event....... Created event 006BDDC8 with context 006BDCF8, priority 20, 
and timeout -1
Host info... added `maggie' with host 006BDCF8 to list 006BDCE0
Host connect Grabbing lock on Host 006BDCF8 with 006BD1C8
Host info... Added Net 006BD1C8 (request 006BC0B0) to pipe on Host 
006BDCF8, 1 requests ma
ests in pipe, 0 pending
HTHost...... No ActivateRequest callback handler registered
HTHost 006BDCF8 going to state TCP_CHANNEL.
HTHost 006BDCF8 going to state TCP_DNS.
DNS Add..... `maggie' with 1 home(s) to 006BDF38
ParseInet... as port 80 on 10.47.1.208 with 1 homes
HTHost 006BDCF8 going to state TCP_NEED_SOCKET.
Socket...... Created 344
Net Manager. Increasing active sockets to 1, 0 persistent sockets
Socket...... Non-blocking socket
Channel..... Hash value is 9
Channel..... Added 006BC480 to list 00F71A98
Reader...... Created reader stream 00F71AC8
HTHost 006BDCF8 going to state TCP_NEED_CONNECT.
HTDoConnect. WOULD BLOCK `maggie'
Event....... Dumping socket events
soc      event: pri millis  callback   param    request        timer: 
millis expires ?   plback
344
writ 006BD188:  20     -1 00454CF0 006BDCF8 006BC0B0
Event....... Dumping socket events
soc      event: pri millis  callback   param    request        timer: 
millis expires ?   plback
344
writ 006BD188:  20     -1 00454CF0 006BDCF8 006BC0B0
Event....... Dumping socket events
soc      event: pri millis  callback   param    request        timer: 
millis expires ?   plback
344
writ 006BD188:  20     -1 00454CF0 006BDCF8 006BC0B0
Event....... Dumping socket events
soc      event: pri millis  callback   param    request        timer: 
millis expires ?   plback
344
writ 006BD188:  20     -1 00454CF0 006BDCF8 006BC0B0
Event....... Dumping socket events
soc      event: pri millis  callback   param    request        timer: 
millis expires ?   plback


-- 
Peter Åstrand                Telephone: +46-13-21 46 00
Cendio Systems               E-mail: peter@cendio.se
Teknikringen 3
583 30 Linköping

Received on Friday, 4 October 2002 15:01:45 UTC