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 2014年10月11日 11:23 by Urs.Traber, last changed 2022年04月11日 14:58 by admin.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| test_socket.patch | Urs.Traber, 2014年10月11日 11:23 | patch for test_socket.py | ||
| Messages (7) | |||
|---|---|---|---|
| msg229075 - (view) | Author: Urs Traber (Urs.Traber) | Date: 2014年10月11日 11:23 | |
test_socke.py does not clean up its event objects used for synchronization. This may cause multiple such ERRORs (*): testLinebufferedWrite (__main__.LineBufferedFileObjectClassTestCase) ... sem_init: Too many open files ERROR Fixed by setting the allocated Event objects to None at the end of a test (see patch attached). *) e.g. on Digital UNIX with a default of maximal 4096 open files per process |
|||
| msg229092 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2014年10月11日 14:44 | |
I think this is a consequence of issue 11798. Since Events use filesystem based semaphores on FreeBSD (I think?), it seems reasonable to "fix" this in test_socket specifically in 2.7. |
|||
| msg231324 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2014年11月18日 14:19 | |
I suggest to merge issue22608 and issue22610 and also clean up other long living event objects in tests. |
|||
| msg238845 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2015年03月21日 22:58 | |
It's a simple patch so can we have a formal review please. |
|||
| msg238852 - (view) | Author: Martin Panter (martin.panter) * (Python committer) | Date: 2015年03月21日 23:26 | |
Maybe these patches work around the problem in these cases, but it sounds like the threading.Event class needs to grow a close() method or support the context manager protocol, rather than relying on the garbage collector to clean it up. |
|||
| msg415838 - (view) | Author: Irit Katriel (iritkatriel) * (Python committer) | Date: 2022年03月22日 23:07 | |
I think this was fixed in issue45212. |
|||
| msg415928 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2022年03月24日 08:56 | |
Note that it is a FreeBSD-only issue. We need to test on FreeBSD (ulimit -n can be used for this) to check whether it was fixed in issue45212. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:09 | admin | set | github: 66798 |
| 2022年03月24日 08:56:47 | serhiy.storchaka | set | status: pending -> open messages: + msg415928 |
| 2022年03月22日 23:07:28 | iritkatriel | set | status: open -> pending nosy: + iritkatriel messages: + msg415838 superseder: Dangling threads in skipped tests in test_socket resolution: duplicate |
| 2019年03月15日 22:23:54 | BreamoreBoy | set | nosy:
- BreamoreBoy |
| 2015年03月21日 23:26:41 | martin.panter | set | nosy:
+ martin.panter messages: + msg238852 |
| 2015年03月21日 22:58:28 | BreamoreBoy | set | nosy:
+ BreamoreBoy messages: + msg238845 |
| 2014年11月18日 14:19:25 | serhiy.storchaka | set | versions:
+ Python 3.4, Python 3.5 nosy: + serhiy.storchaka messages: + msg231324 stage: needs patch |
| 2014年10月11日 14:44:31 | r.david.murray | set | nosy:
+ r.david.murray messages: + msg229092 |
| 2014年10月11日 11:23:01 | Urs.Traber | create | |