Обсуждение: Bug #752: I fixed (worked arround) bug pqReadData function on HPUX

Поиск
Список
Период
Сортировка

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

От
pgsql-bugs@postgresql.org
Дата:
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