socket read/write queue mods for better performance, fixes to writing and then reading from same socket, using some flag changes.