[New-bugs-announce] [issue27833] Process is locked when try to execute Queue.put() inside
Guni
report at bugs.python.org
Tue Aug 23 04:56:53 EDT 2016
New submission from Guni:
Hello,
When I try to put a long string (I mean longer then 65523 chars) in a queue if the put is inside in Process it's block the process and Process.Join() never execute.
Let's me give an example:
---------------
from multiprocessing import Queue, Process
def getLongString():
s = ""
for i in range(1, 65524):
s += "1"
return s
def p1(q):
print('START')
q.put(getLongString())
print('END')
q = Queue()
prs1 = Process(target=p1, args=(q,))
prs1.start()
prs1.join()
print('FINISH')
----------------
##############
The result of it 65524 chars will be:
START
END
##############
##############
The result of it 65523 chars will be:
START
END
FINISH
##############
----------
messages: 273426
nosy: Guni
priority: normal
severity: normal
status: open
title: Process is locked when try to execute Queue.put() inside
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27833>
_______________________________________
More information about the New-bugs-announce
mailing list