This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2009年06月30日 01:58 by r.david.murray, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| SocketServer.py | kristjan.jonsson, 2009年07月07日 00:13 | patched SocketServer.py for test on linux | ||
| issue6382.patch | r.david.murray, 2009年07月07日 01:38 | |||
| Messages (9) | |||
|---|---|---|---|
| msg89897 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2009年06月30日 01:58 | |
Gentoo linux, trunk r73699. test_socketserver fails with the following tracebacks: ====================================================================== FAIL: test_ForkingTCPServer (test.test_socketserver.SocketServerTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/rdmurray/python/trunk/Lib/test/test_socketserver.py", line 189, in test_ForkingTCPServer self.stream_examine) File "/home/rdmurray/python/trunk/Lib/test/test_socketserver.py", line 147, in run_server testfunc(svrcls.address_family, addr) File "/home/rdmurray/python/trunk/Lib/test/test_socketserver.py", line 161, in stream_examine self.assertEquals(buf, TEST_STR) AssertionError: '' != 'hello world\n' ====================================================================== FAIL: test_ForkingUnixStreamServer (test.test_socketserver.SocketServerTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/rdmurray/python/trunk/Lib/test/test_socketserver.py", line 207, in test_ForkingUnixStreamServer self.stream_examine) File "/home/rdmurray/python/trunk/Lib/test/test_socketserver.py", line 147, in run_server testfunc(svrcls.address_family, addr) File "/home/rdmurray/python/trunk/Lib/test/test_socketserver.py", line 161, in stream_examine self.assertEquals(buf, TEST_STR) AssertionError: '' != 'hello world\n' |
|||
| msg90120 - (view) | Author: Kristján Valur Jónsson (kristjan.jonsson) * (Python committer) | Date: 2009年07月04日 15:44 | |
This is a "fork" problem. socket.close must be done on the parent, while socket.shutdown and socket.close must be performed on the child. I must restructure this a little bit to make it work. |
|||
| msg90160 - (view) | Author: Kristján Valur Jónsson (kristjan.jonsson) * (Python committer) | Date: 2009年07月05日 20:57 | |
submitted revision 73863. Please test for me on gentoo. |
|||
| msg90182 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2009年07月06日 16:17 | |
I now get a different error, followed by zsh detecting an alarm: rdmurray@partner:~/python/trunk>./python -m test.regrtest -uall test_socketserver Could not find '/home/rdmurray/python/trunk/Lib/test' in sys.path to remove it test_socketserver Exception in thread SocketServer.ForkingUDPServer serving: Traceback (most recent call last): File "/home/rdmurray/python/trunk/Lib/threading.py", line 524, in __bootstrap_inner self.run() File "/home/rdmurray/python/trunk/Lib/threading.py", line 477, in run self.__target(*self.__args, **self.__kwargs) File "/home/rdmurray/python/trunk/Lib/SocketServer.py", line 226, in serve_forever self._handle_request_noblock() File "/home/rdmurray/python/trunk/Lib/SocketServer.py", line 283, in _handle_request_noblock self.handle_error(request, client_address) File "/home/rdmurray/python/trunk/Lib/SocketServer.py", line 281, in _handle_request_noblock self.process_request(request, client_address) File "/home/rdmurray/python/trunk/Lib/SocketServer.py", line 535, in process_request request.close() #close socket handle in parent process AttributeError: 'tuple' object has no attribute 'close' zsh: alarm ./python -m test.regrtest -uall test_socketserver |
|||
| msg90198 - (view) | Author: Kristján Valur Jónsson (kristjan.jonsson) * (Python committer) | Date: 2009年07月06日 23:41 | |
How unfortunate. This means that we need to virtualize the shutdown. I'll submit a proposed patch. |
|||
| msg90204 - (view) | Author: Kristján Valur Jónsson (kristjan.jonsson) * (Python committer) | Date: 2009年07月07日 00:13 | |
I'm uploading a patched SocketServer.py. Could you please try it out on the gentoo box before I commit it? |
|||
| msg90209 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2009年07月07日 01:38 | |
I had to fix one line, but after that it runs successfully. Updated patch attached. The change is to add the 'request' argument to the close_request call on line 549. |
|||
| msg90219 - (view) | Author: Kristján Valur Jónsson (kristjan.jonsson) * (Python committer) | Date: 2009年07月07日 09:09 | |
committed in revision 73877 and revision 73878 |
|||
| msg96340 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2009年12月13日 17:57 | |
NB: this issue was triggered by the issue 6267 patch. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:50 | admin | set | github: 50631 |
| 2009年12月13日 17:57:41 | r.david.murray | set | status: open -> closed type: behavior messages: + msg96340 resolution: fixed stage: needs patch -> resolved |
| 2009年07月07日 09:09:54 | kristjan.jonsson | set | messages: + msg90219 |
| 2009年07月07日 01:38:39 | r.david.murray | set | files:
+ issue6382.patch keywords: + patch messages: + msg90209 |
| 2009年07月07日 00:13:57 | kristjan.jonsson | set | files:
+ SocketServer.py messages: + msg90204 |
| 2009年07月06日 23:41:38 | kristjan.jonsson | set | messages: + msg90198 |
| 2009年07月06日 16:17:05 | r.david.murray | set | messages: + msg90182 |
| 2009年07月05日 20:57:21 | kristjan.jonsson | set | messages: + msg90160 |
| 2009年07月04日 15:44:19 | kristjan.jonsson | set | nosy:
+ kristjan.jonsson messages: + msg90120 |
| 2009年06月30日 01:58:43 | r.david.murray | create | |