Bug #752: I fixed (worked arround) bug pqReadData function on HPUX

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема Bug #752: I fixed (worked arround) bug pqReadData function on HPUX
Дата
Msg-id 20020828223144.6AF93475C14@postgresql.org
обсуждение исходный текст
Список pgsql-bugs
Diedrich Vorberg (diedrich@tux4web.de) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
I fixed (worked arround) bug pqReadData function on HPUX

Long Description
Version: 7.2.1
uname -a: HP-UX c200 B.11.11 U 9000/782

I used to get a "could not receive data from server: Error: 0" error message from the pqReadData function in
fe-misc.c:491.Turns out recv() returnes -1 but set errno to 0. I just guessed that means there´s nothing more to read
andadded a line 

   if (SOCK_ERRNO == 0) return someread;

which made the problem go away. I have not taken the time to investigate further and I am afraid my expertise is
insufficient:)  

Sorry about my poor Server-programming, hope this points you in the right direction.

Diedrich

Sample Code


No file was uploaded with this report

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: cube bug accepting -.1
Следующее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #753: test