<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Server errors using Twisted with Python 2.3</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Since installing Python 2.3 on HP-UX11i, I keep getting 'Resource temporarily unavailable' errors in server applications.</FONT></P>

<P><FONT SIZE=2>E.g. using ../doc/examples/simpleserv.py &amp; ../doc/examples/simpleclient.py:</FONT>
</P>

<P><FONT SIZE=2>&quot;richardt&quot; capulet:doc/examples &gt; python simpleserv.py </FONT>
<BR><FONT SIZE=2>Traceback (most recent call last):</FONT>
<BR><FONT SIZE=2>&nbsp; File &quot;/opt/python/lib/python2.3/site-packages/twisted/python/log.py&quot;, line 65, in callWithLogger</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; callWithContext({&quot;system&quot;: lp}, func, *args, **kw)</FONT>
<BR><FONT SIZE=2>&nbsp; File &quot;/opt/python/lib/python2.3/site-packages/twisted/python/log.py&quot;, line 52, in callWithContext</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; return context.call({ILogContext: newCtx}, func, *args, **kw)</FONT>
<BR><FONT SIZE=2>&nbsp; File &quot;/opt/python/lib/python2.3/site-packages/twisted/python/context.py&quot;, line 32, in callWithContext</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; return func(*args,**kw)</FONT>
<BR><FONT SIZE=2>&nbsp; File &quot;/opt/python/lib/python2.3/site-packages/twisted/internet/default.py&quot;, line 510, in _doReadOrWrite</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; why = getattr(selectable, method)()</FONT>
<BR><FONT SIZE=2>--- &lt;exception caught here&gt; ---</FONT>
<BR><FONT SIZE=2>&nbsp; File &quot;/opt/python/lib/python2.3/site-packages/twisted/internet/tcp.py&quot;, line 595, in doRead</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; skt, addr = self.socket.accept()</FONT>
<BR><FONT SIZE=2>&nbsp; File &quot;/opt/python/lib/python2.3/socket.py&quot;, line 167, in accept</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; sock, addr = self._sock.accept()</FONT>
<BR><FONT SIZE=2>socket.error: (11, 'Resource temporarily unavailable')</FONT>
</P>
<BR>

<P><FONT SIZE=2>&quot;richardt&quot; capulet:doc/examples &gt; python simpleclient.py</FONT>
<BR><FONT SIZE=2>Server said: hello, world!</FONT>
<BR><FONT SIZE=2>connection lost</FONT>
<BR><FONT SIZE=2>Connection lost - goodbye!</FONT>
</P>
<BR>

<P><FONT SIZE=2>The transaction appears to work, but the log file is filling up with these errors. This happens with Twisted 1.0.6 and 1.0.7.</FONT></P>

<P><FONT SIZE=2>It doesn't happen when using Python 2.2</FONT>
</P>

<P><FONT SIZE=2>Can anyone advise how to fix this problem?</FONT>
</P>

<P><FONT SIZE=2>regards,</FONT>
<BR><FONT SIZE=2>Richard Townsend</FONT>
</P>

</BODY>
</HTML>