4a5340eae7
Motivation: We need to duplicate the buffer before passing it to writeBytes(...) as it will increase the readerIndex(). Modifications: Call duplicate(). Result: No more IndexOutOfBoundsException when runing the multiplex example.