Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group