Raw socket communications update

The data is read from the client  through BSD sockets. POST requests
from a client were not reliably read. An attempt was made to fix this.
It works better now.