Fixed a LWS bug.

Related test:

    connection::test_connection_8