On 1/18/07, <b class="gmail_sendername">yacine chaouche</b> &lt;<a href="mailto:yacinechaouche@gmail.com">yacinechaouche@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>I have an ajax application that is composed by :<br>1) An ajax client which is a web page with a button that calls a zope object&#39;s method, say &quot;toutCompter&quot;.<br>2)
An ajax server (zope), with a zope object that has the method
&quot;toutCompter&quot; (all zope object methods are XMLRPC callable right ?).
<br><br>I use two browsers on two separate machines. I call the
methode on the two browsers, and compares the zope trace and strace
output of the network activity. The problem is that zope says he sends
data but strace don&#39;t, and zope says he receives data and again strace
don&#39;t. <br><br>This is the zope/python code that prints to the console :<br>&lt;zope/python&gt;<br>&nbsp;&nbsp;&nbsp; def toutCompter(self):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;&quot;<br>&nbsp;&nbsp; &nbsp;this method is called via XMLRPC.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;&quot;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IPAdresse&nbsp; = self.REQUEST[&quot;REMOTE_ADDR&quot;]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;ip:&quot;,IPAdresse,&quot;requests counting of lines&quot;,self.getForm(&#39;min&#39;),&quot;to&quot;,self.getForm(&#39;max&#39;) <br>&nbsp;&nbsp; &nbsp;... #some processing here. creation of XMLData
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;sending results to &quot;+IPAdresse<br>&nbsp;&nbsp; &nbsp;return XMLData<br>&lt;/zope/python&gt;<br><br><br>Zope says :<br><br>&lt;zope traces to the console&gt;<br>ip: <a href="http://10.75.49.155/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

10.75.49.155</a>
 requests counting of lines 10 to 20<br>ip: <a href="http://10.75.49.51/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.75.49.51</a> requests counting of lines 10 to 20<br>sending results to <a href="http://10.75.49.155/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

10.75.49.155</a><br>sending results to <a href="http://10.75.49.51/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
10.75.49.51</a><br>ip: <a href="http://10.75.49.51/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.75.49.51</a> requests counting of lines 10 to 20<br>sending results to <a href="http://10.75.49.51/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

10.75.49.51</a><br>&lt;/zope trace&gt;</blockquote><div><br>instead of strace try tcpdump, much more helpful:<br>tcpdump -i &lt;INTERFACE&gt; -s 0 -A HOST &lt;HOST&gt; AND PORT &lt;PORT&gt;<br>should show the reality<br>
<br>Best regards,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Patrick<br><br></div><br></div>