added a check for packet size

added a check to verify the packet is the proper size
verify the proper packet size before sending
Merge branch 'ISSUE=8694-too-small-of-a-packet' into 1.0.2-dev