Remove spls from portal_open().  Acquire socket lock while sleeping waiting for the socket to connect and use msleep() on the socket mute rather than tsleep().  Acquire socket buffer mutexes around read-modify-write of socket buffer flags.
Remove spls from portal_open().  Acquire socket lock while sleeping
waiting for the socket to connect and use msleep() on the socket
mute rather than tsleep().  Acquire socket buffer mutexes around
read-modify-write of socket buffer flags.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase