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 <rep...@bugs.python.org>
<http://bugs.python.org/issue27833>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to