1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-06 19:59:18 +03:00

Terminate message doesn't have a trailing zero byte.

This commit is contained in:
Peter Eisentraut 2001-07-06 18:01:22 +00:00
parent e77aaade34
commit cff024120a

View File

@ -383,7 +383,7 @@ public class PG_Stream
*/ */
public void close() throws IOException public void close() throws IOException
{ {
pg_output.write("X\0".getBytes()); pg_output.write("X".getBytes());
pg_output.flush(); pg_output.flush();
pg_output.close(); pg_output.close();
pg_input.close(); pg_input.close();
@ -391,4 +391,3 @@ public class PG_Stream
} }
} }