peer protocol tests were checking only for an unused function, so I added more tests checking from dialing over a real connection. The second test checks that sending invalid data immediately causes the connection to close. For that to be possible I added a check for { as the first byte (this is always the case)
peer protocol tests were checking only for an unused function, so I added more tests checking from dialing over a real connection. The second test checks that sending invalid data immediately causes the connection to close. For that to be possible I added a check for { as the first byte (this is always the case)