Inbound Connections Attributed To Wrong Process #1849 - GitHub
Có thể bạn quan tâm
Skip to content You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} weaveworks / scope Public 
radeopened on Sep 2, 2016
- Notifications You must be signed in to change notification settings
- Fork 725
- Star 5.9k
- Code
- Issues 445
- Pull requests 9
- Actions
- Projects 0
- Wiki
- Security 0
- Insights
Description
- term1: tcpserver -v 127.0.0.1 8080 cat
- term2: nc 127.0.0.1 8080
- term3: nc 127.0.0.1 8080
- fire up scope and look at process topology
Here's what it shows: 
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::54610And 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 assignedLabels
Incorrect information is being shown to the user; usually a bugBroken end user or developer functionality; not working as the developers intended itType
No typeProjects
No projectsMilestone
- BacklogNo due date
Relationships
None yetDevelopment
No branches or pull requestsIssue actions
You can’t perform that action at this time.Từ khóa » Http-alt Lsof
-
Understanding What Lsof Socket/port Aliases Refer To - Mark Needham
-
Find Out Which Process Listens On Which Port | Picostitch
-
Linux – Which Application Is Using Port 8080
-
Which Process Uses Http-proxy 8080 - Unix & Linux Stack Exchange
-
Lsof Port 3000 Code Example
-
How To Kill A Process Running On Particular Port In Linux?
-
How Do I Extract The PID From The Output Of `lsof -i:8080`? - Ask Ubuntu
-
Finding A Process Using A Specific Network Port With The Lsof Command
-
Using Lsof To Determine Which Processes Are Listening On TCP Or ...
-
Check Open And Listening Ports On Linux Using Netstat And Ss
-
Find Process Listening At Port 8080 On Mac OS X - Gists · GitHub
-
How To Kill A Process That Is A Using Port On MacOS - Kevin Sookocheff
-
Find And Kill A Process On A Port | Jake Trent