Message9162

Author mb_
Recipients mb_, zyasoft
Date 2014-10-21.19:50:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1413921058.93.0.316517903403.issue2157@psf.upfronthosting.co.za>
In-reply-to
Content
I'm very sorry for my (too) late response.

The unit test only succeeds for me, because the code contains a workaround for this issue. See lines 673/674:
http://bues.ch/gitweb?p=awlsim.git;a=blob;f=awlsim/coreserver/messages.py;h=9d12d2dcbd001c8900faa7290981b955548c682b;hb=HEAD#l673

If I comment these two lines, the test starts to fail.

> === Running tests with '/home/mb/develop/hg/jython/dist/bin/jython'
> Running test 'coreserver-cli.sh' with 'jython' ... 
> --- Running coreserver tests
> Running test 'shutdown.awl' with 'jython' ... Traceback (most recent call last):
>   File "/home/mb/develop/git/awlsim/./tests/../awlsim-cli", line 523, in <module>
>     sys.exit(main())
>   File "/home/mb/develop/git/awlsim/./tests/../awlsim-cli", line 519, in main
>     return runWithServerBackend(inputFile)
>   File "/home/mb/develop/git/awlsim/./tests/../awlsim-cli", line 276, in runWithServerBackend
>     client.connectToServer()
>   File "/home/mb/develop/git/awlsim/./tests/../awlsim-cli", line 276, in runWithServerBackend
>     client.connectToServer()
>   File "/home/mb/develop/git/awlsim/awlsim/coreclient/client.py", line 142, in connectToServer
>     msg = self.transceiver.receive(timeout = 5.0)
>   File "/home/mb/develop/git/awlsim/awlsim/coreclient/client.py", line 142, in connectToServer
>     msg = self.transceiver.receive(timeout = 5.0)
>   File "/home/mb/develop/git/awlsim/awlsim/coreserver/messages.py", line 725, in receive
>     data = self.sock.recv(hdrLen - len(self.buf))
>   File "/home/mb/develop/hg/jython/dist/Lib/_socket.py", line 1134, in recv
>     data, _ = self._get_message(bufsize, "recv")
>   File "/home/mb/develop/hg/jython/dist/Lib/_socket.py", line 344, in handle_exception
>     return method_or_function(*args, **kwargs)
>   File "/home/mb/develop/hg/jython/dist/Lib/_socket.py", line 344, in handle_exception
>     return method_or_function(*args, **kwargs)
>   File "/home/mb/develop/hg/jython/dist/Lib/_socket.py", line 1100, in _get_message
>     msg = self._get_incoming_msg(reason)
>   File "/home/mb/develop/hg/jython/dist/Lib/_socket.py", line 1081, in _get_incoming_msg
>     self.incoming_head = self._handle_timeout(self.incoming.poll, reason)
>   File "/home/mb/develop/hg/jython/dist/Lib/_socket.py", line 786, in _handle_timeout
>     raise timeout("timed out")
> _socket.timeout: timed out
> === TEST FAILED ===
> Test 'shutdown.awl' FAILED
> Test failed with error code 1
History
Date User Action Args
2014-10-21 19:50:58mb_setmessageid: <1413921058.93.0.316517903403.issue2157@psf.upfronthosting.co.za>
2014-10-21 19:50:58mb_setrecipients: + mb_, zyasoft
2014-10-21 19:50:58mb_linkissue2157 messages
2014-10-21 19:50:57mb_create