From: lishuai z. <lis...@gm...> - 2006-10-20 07:19:51
|
Hi, This is Lishuai.Zhao. Thank you for your help before. I would try to test the syncml-http-server plugin and file-sync plugin, but failed. I add a group like this: [root@localhost ~]# msynctool --showgroup httpfile Groupname: httpfile Member 2: file-sync Configuration : <config><path>/home/httpfile/sync2</path><recursive>FALSE</recursive></config> Member 1: syncml-http-server Configuration : <config><username></username><password></password><url>/home/httpfile/sync1</url><port>9999</port><usestringtable>0</usestringtable><onlyreplace>0</onlyreplace><recvLimit>100000</recvLimit><maxObjSize>0</maxObjSize><contact_db>contacts</contact_db><calendar_db>calendar</calendar_db><note_db>notes</note_db></config> Because I do not have a mobile phone, so I use the funambol-javagui-plugin to simulate a mobile terminal. When I do "msyncml --sync httpfile --wait" and make the funambol-javagui-plugin to sync, it says: [root@localhost ~]# msynctool --sync httpfile --wait Synchronizing group "httpfile" received contact dsession Member 1 of type syncml-http-server just connected Member 2 of type file-sync just connected All clients connected or error Member 2 of type file-sync just sent all changes Member 1 of type syncml-http-server had an error while getting changes: Timeout while waiting for a reply to message "GET_CHANGES" Member 2 of type file-sync just disconnected Member 1 of type syncml-http-server had an error while disconnecting: Timeout while waiting for a reply to message "DISCONNECT" All clients have disconnected The sync failed: Unable to read from one of the members I have the log file of Thread3075451824.log with the environment variable $SYNCML_TRACE. The function of smlAssemblerAddStatusFull appears twice (in line226 and line263 of Thread3075451824.log). I think it related to the context between line926 and line935 of smlSessionReceiveBody in sml_session.c. The first time smlAssemblerAddStatus executed(the line226 of Thread3075451824.log) is in the function of smlSessionReceiveBody, also in the _server_callback function(Because smlSessionReceiveBody executed in _server_callback). But obviously the second time it appears(line 263 of Thread3075451824.log)is out of the _server_callback function. Why it execute in such order? In my opinion, the code after line 926 of sml_session.c is related to the reason that I failed closely. Could you help me? Following is my environment: (1). Fedora Core 4 (2.6.11-1.1369_FC4) (2). funambol-javagui-plugin-3.0.4.tgz (3). Packages built: (a).libopensync-0.18.tar.gz (b).multisync-0.90.18.tar.gz (c).libsyncml-0.4.0.tar.gz (d).libopensync-plugin-syncml-0.18 (e).libopensync-plugin-file-0.18.tar.gz The accessory is the log file of Thread3075451824.log. Best regards! Lishuai.Zhao |