Skip to content
Browse files

Adding in rvanvelzen's isNaN() patch, line 750.

Adding in  augustohp's break fixes for timestamp checking.
  • Loading branch information...
1 parent 000ef21 commit eb8e31a6801fb7be37dd271b00d14ed52f52a4fe Aurynn Shaw committed Mar 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/postgres-pure.js
View
2 lib/postgres-pure.js
@@ -747,7 +747,7 @@ function Connection(args) {
var length = first.int32Read(1) - 4;
// Make sure we have a whole message, TCP comes in chunks
- if (first.length < length + 5) {
+ if (first.length < length + 5 || isNaN(length)) {
if (queue.length > 1) {
// Merge the first two buffers
queue.shift();

0 comments on commit eb8e31a

Please sign in to comment.
Something went wrong with that request. Please try again.