Skip to content

Commit eb8e31a

Browse files
author
Aurynn Shaw
committed
Adding in rvanvelzen's isNaN() patch, line 750.
Adding in augustohp's break fixes for timestamp checking.
1 parent 000ef21 commit eb8e31a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/postgres-pure.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ function Connection(args) {
747747
var length = first.int32Read(1) - 4;
748748

749749
// Make sure we have a whole message, TCP comes in chunks
750-
if (first.length < length + 5) {
750+
if (first.length < length + 5 || isNaN(length)) {
751751
if (queue.length > 1) {
752752
// Merge the first two buffers
753753
queue.shift();

0 commit comments

Comments
 (0)