Inbound Connections Attributed To Wrong Process #1849 - GitHub

Skip to content Dismiss alert {{ message }} / scope Public
  • Notifications You must be signed in to change notification settings
  • Fork 725
  • Star 5.9k
  • Code
  • Issues 445
  • Pull requests 9
  • Actions
  • Projects
  • Wiki
  • Security
  • Insights
Additional navigation options inbound connections attributed to wrong process #1849New issueNew issueOpenOpeninbound connections attributed to wrong process#1849LabelsaccuracyIncorrect information is being shown to the user; usually a bugbugBroken end user or developer functionality; not working as the developers intended itMilestoneBacklog@rade

Description

@raderadeopened on Sep 2, 2016
  1. term1: tcpserver -v 127.0.0.1 8080 cat
  2. term2: nc 127.0.0.1 8080
  3. term3: nc 127.0.0.1 8080
  4. fire up scope and look at process topology

Here's what it shows: screenshot_2016-09-02_19-02-04

So the two nc are shown as being served by a single cat. In reality however each is served by a different cat. From the tcpserver logs...

tcpserver: status: 0/40 tcpserver: status: 1/40 tcpserver: pid 12972 from 127.0.0.1 tcpserver: ok 12972 :127.0.0.1:8080 :127.0.0.1::54590 tcpserver: status: 2/40 tcpserver: pid 13433 from 127.0.0.1 tcpserver: ok 13433 :127.0.0.1:8080 :127.0.0.1::54610

And running some lsofs...

matthias@xps:~$ lsof -i -a -p 12972 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME cat 12972 matthias 0u IPv4 2911228 0t0 TCP localhost:http-alt->localhost:54590 (ESTABLISHED) cat 12972 matthias 1u IPv4 2911228 0t0 TCP localhost:http-alt->localhost:54590 (ESTABLISHED) matthias@xps:~$ lsof -i -a -p 13433 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME cat 13433 matthias 0u IPv4 2914810 0t0 TCP localhost:http-alt->localhost:54610 (ESTABLISHED) cat 13433 matthias 1u IPv4 2914810 0t0 TCP localhost:http-alt->localhost:54610 (ESTABLISHED)

So it looks like the connection served by the 2nd cat (pid 13433) is incorrectly attributed to the first.

Metadata

Metadata

Assignees

No one assigned

Labels

accuracyIncorrect information is being shown to the user; usually a bugbugBroken end user or developer functionality; not working as the developers intended it

Type

No type

Projects

No projects

Milestone

  • BacklogNo due date

Relationships

None yet

Development

No branches or pull requests

Issue actions

You can’t perform that action at this time.

Từ khóa » Http-alt Lsof