# lsof: can't identify protocol

DevFeed: [lsof: can't identify protocol](<https://devfeed.tech/articles/lsof-can-t-identify-protocol-38917.md>)

Original publisher: [Read original article](<https://idea.popcount.org/2012-12-09-lsof-cant-identify-protocol>)

Author: Marek

Published: 2012-12-08T23:00:00Z

Content type: news

Language: en

Sources: [Marek Majkowski](<https://devfeed.tech/sources/marek-majkowski.md>)

Topics: [WebSocket](<https://devfeed.tech/topics/websocket.md>), [TCP/IP](<https://devfeed.tech/topics/tcp-ip.md>), [Library](<https://devfeed.tech/topics/library.md>), [debugging](<https://devfeed.tech/topics/debugging.md>)

Tags: [behaviour](<https://devfeed.tech/tags/behaviour.md>), [crash](<https://devfeed.tech/tags/crash.md>), [file](<https://devfeed.tech/tags/file.md>), [freebsd](<https://devfeed.tech/tags/freebsd.md>), [ipv4](<https://devfeed.tech/tags/ipv4.md>), [issue](<https://devfeed.tech/tags/issue.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [library](<https://devfeed.tech/tags/library.md>), [linux](<https://devfeed.tech/tags/linux.md>), [localhost](<https://devfeed.tech/tags/localhost.md>), [node](<https://devfeed.tech/tags/node.md>), [port](<https://devfeed.tech/tags/port.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [server](<https://devfeed.tech/tags/server.md>), [sockets](<https://devfeed.tech/tags/sockets.md>), [state](<https://devfeed.tech/tags/state.md>), [tcp](<https://devfeed.tech/tags/tcp.md>), [tcp-ip](<https://devfeed.tech/tags/tcp-ip.md>), [users](<https://devfeed.tech/tags/users.md>), [websockets](<https://devfeed.tech/tags/websockets.md>)

## AI overview

With websockets enabled, SockJS-node users reported file-descriptor exhaustion and an EMFILE crash; `lsof` showed affected sockets as "can't identify protocol." The article identifies `faye-websocket-node` as the suspected culprit: sockets in `CLOSED` state appeared not to be closed. `netstat` exposed them on FreeBSD but did not report them on Linux, complicating diagnosis. A Python reproduction creates half-closed sockets; on Ubuntu, the article says kernel information disappears from `/proc/net/*`, leaving `lsof` without details.

## Source excerpt

lsof: can't identify protocol SockJS-node users noticed that the server seems to be leaking file descriptors when websockets are enabled. The problem resulted in the usual crash. Additionally, was producing weird output, with line instead of a normal tcp/ip description. Where it should say something like: it said: The issue was hard to track, but eventually Yury Michurin found a culprit. It was a library which seems to be leaking sockets in state but didn't close them.