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

pipe chunking vs Windows

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: pipe chunking vs Windows
Date: 2007-07-29 12:46:08
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
I have just discovered that the recently implemented pipe chunking 
protocol is broken on Windows. This is because the pipes are operating 
in text mode and doing LF->CR-LF translation, so the number of bytes 
received is not the number transmitted and set in the protocol header.

I have not yet succeeded in turning this behaviour off (_setmode() 
didn't seem to affect it). If we can't find a way to turn it off, the 
only solution short of abandoning its use on Windows that I can think of 
is to translate LF on input to something unlikely like 0x1C and then 
translate it back when we read it from the pipe.




pgsql-hackers by date

Next:From: Magnus HaganderDate: 2007-07-29 13:18:48
Subject: Re: pipe chunking vs Windows
Previous:From: Erik JonesDate: 2007-07-29 06:24:50
Subject: Re: stats_block_level

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