'Set the write buffer size for the given transport, mananing possible
differences (ie, IOCP). Bug #4322 should remove the need of that hack.'

def setWriteBufferSize(self, transport, value):

    if (getattr(transport, 'writeBufferSize', None) is not None):
        transport.writeBufferSize = value
    else:
        transport.bufferSize = value
