[issue22608] test_socket fails with sem_init: Too many open files

2022-03-24 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

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.

--
status: pending -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22608] test_socket fails with sem_init: Too many open files

2022-03-22 Thread Irit Katriel


Irit Katriel  added the comment:

I think this was fixed in issue45212.

--
nosy: +iritkatriel
resolution:  -> duplicate
status: open -> pending
superseder:  -> Dangling threads in skipped tests in test_socket

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22608] test_socket fails with sem_init: Too many open files

2019-03-15 Thread Mark Lawrence


Change by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22608] test_socket fails with sem_init: Too many open files

2015-03-21 Thread Mark Lawrence

Mark Lawrence added the comment:

It's a simple patch so can we have a formal review please.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22608
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22608] test_socket fails with sem_init: Too many open files

2015-03-21 Thread Martin Panter

Martin Panter added the comment:

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.

--
nosy: +vadmium

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22608
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22608] test_socket fails with sem_init: Too many open files

2014-11-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I suggest to merge issue22608 and issue22610 and also clean up other long 
living event objects in tests.

--
nosy: +serhiy.storchaka
stage:  - needs patch
versions: +Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22608
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22608] test_socket fails with sem_init: Too many open files

2014-10-11 Thread Urs Traber

New submission from Urs Traber:

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

--
components: Tests
files: test_socket.patch
keywords: patch
messages: 229075
nosy: Urs.Traber
priority: normal
severity: normal
status: open
title: test_socket fails with sem_init: Too many open files
type: resource usage
versions: Python 2.7
Added file: http://bugs.python.org/file36878/test_socket.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22608
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22608] test_socket fails with sem_init: Too many open files

2014-10-11 Thread R. David Murray

R. David Murray added the comment:

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.

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22608
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com