mcavage/node-ldapjs — Issue #26: Some sort of parsing error occurs under load
Author: mcavage
Created: 2011-10-18 22:05:04+00:00
State: open

```
[2011-10-18 20:44:49.402] [ERROR] Server - Exception happened parsing for 127.0.0.1:36014: InvalidAsn1Error: Expected 0x2: got 0x30
at /opt/smartdc/ufds/node_modules/ldapjs/node_modules/asn1/lib/ber/errors.js:7:13
at Reader._readTag (/opt/smartdc/ufds/node_modules/ldapjs/node_modules/asn1/lib/ber/reader.js:190:11)
at Reader.readInt (/opt/smartdc/ufds/node_modules/ldapjs/node_modules/asn1/lib/ber/reader.js:135:15)
at Parser._newMessage (/opt/smartdc/ufds/node_modules/ldapjs/lib/messages/parser.js:142:23)
at Parser.write (/opt/smartdc/ufds/node_modules/ldapjs/lib/messages/parser.js:85:17)
at Parser.write (/opt/smartdc/ufds/node_modules/ldapjs/lib/messages/parser.js:112:17)
at Socket. (/opt/smartdc/ufds/node_modules/ldapjs/lib/server.js:395:16)
at Socket.emit (events.js:64:17)
at Socket._onReadable (net.js:672:14)
at IOWatcher.onReadable [as callback] (net.js:177:10)

assert.js:93
throw new assert.AssertionError({
^
AssertionError: true == null
at getResponse (/opt/smartdc/ufds/node_modules/ldapjs/lib/server.js:73:10)
at Parser. (/opt/smartdc/ufds/node_modules/ldapjs/lib/server.js:382:17)
at Parser.emit (events.js:67:17)
at Parser.write (/opt/smartdc/ufds/node_modules/ldapjs/lib/messages/parser.js:103:10)
at Parser.write (/opt/smartdc/ufds/node_modules/ldapjs/lib/messages/parser.js:112:17)
at Socket. (/opt/smartdc/ufds/node_modules/ldapjs/lib/server.js:395:16)
at Socket.emit (events.js:64:17)
at Socket._onReadable (net.js:672:14)
at IOWatcher.onReadable [as callback] (net.js:177:10)
[ Oct 18 20:44:49 Stopping because all processes in service exited. ]
[ Oct 18 20:44:49 Executing stop method (:kill). ]
[ Oct 18 20:44:49 Restarting too quickly, changing state to maintenance. ]
[root@995bdf5a-fa48-40ff-9281-f11f8964c092 /opt/smartdc/ufds]#
```