Fix a bug in sendPackets and recvPackets where we were not checking the actual amount written/read. In the case of recvPackets this caused us to not fully read a payload, and cause our interpretation to get corrupted. In my case, causing gigabytes of memory to be allocated by go, and resulting in a crash. Also update debugPrint so that when there are multiple wireProtocol's running we can identify which log statements are related to each other.
Fix a bug in sendPackets and recvPackets where we were not checking the actual amount written/read.
In the case of recvPackets this caused us to not fully read a payload, and cause our interpretation to get corrupted. In my case, causing gigabytes of memory to be allocated by go, and resulting in a crash.
Also update debugPrint so that when there are multiple wireProtocol's running we can identify which log statements are related to each other.

nakagami/firebirdsql,rowland/firebirdsql,arteev/firebirdsql,arteev/firebirdsql,rowland/firebirdsql,nakagami/firebirdsql