Hi,

thanks, the altered version of a server is indeed working as it should be. This was tested with netcat.

However the problem with client is still there. I have tried to dig inside with the debugger and both these functions are called:

bufferevent_write(m_event, cast(char*)bytes.ptr, bytes.length)
bufferevent_flush(m_event, EV_WRITE, bufferevent_flush_mode.BEV_NORMAL)

It would almost seem that the libevent is the one responsible for not sending the data. I have even tried to write some data into connection in an endless loop and nothing got through. Any suggestions on what to do next?

Thanks,
Martin