[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)
Giampaolo Rodola'
report at bugs.python.org
Wed Feb 13 17:45:18 CET 2008
Giampaolo Rodola' added the comment:
> The value is used there, but this is not effective in causing larger
> packets to be sent, which I noticed by watching with strace. I think
> the reason for this is that 'refill_buffer' will only make at most one
> call to simple_producer.more, and that call will produce at most 512
> bytes, because that's the default value of that argument, and its not
> overridden in the call that creates the simple_producer inside of
> 'push'.
Sorry, you're right.
I remember now that I reported a similar thing in bug #1736190:
http://bugs.python.org/msg57581
> In addition, I see at least one other place in the code where the
> constant '512' appears.
Where? Aside from simple_producer.__init__ I don't see other places
where it is used.
----------
nosy: +akuchling, josiahcarlson, klimkin
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2073>
__________________________________
More information about the Python-bugs-list
mailing list