BUG: Protocol 3.0: that's just odd, needing to add the number of bytes the length field occupies

From: <Eugen(dot)Konkov(at)aldec(dot)com>
To: <pgsql-bugs(at)postgresql(dot)org>
Subject: BUG: Protocol 3.0: that's just odd, needing to add the number of bytes the length field occupies
Date: 2008-04-16 11:13:55
Message-ID: 004c01c89fb2$f7396cf0$1200a8c0@kharkov.localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

server side: writeInt32( length($message)+4 ); writeString( $message );
client side: $length= readInt32(); readString( $length -4 )

that's just odd, needing to add the number of bytes the length field occupies

This is simpler:
server side: writeInt32( length($message)); writeString( $message );
client side: $length= readInt32(); readString( $length )

Will you plan to correct that in Protocol 3.1?

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Fujii Masao 2008-04-16 13:50:56 BUG #4109: Typo in documentation
Previous Message Pavel Stehule 2008-04-15 14:04:14 domains missing some default castings