Skip to content

rtsp udp connection close error #247

@mostafa-he

Description

@mostafa-he

hello
I have some problem with majestic rtsp protocol
when i establish one rtsp connection to majestic it establish on 554 connection and 2 udp connection
but when i close rtsp connection(close player) only tpc connection closed and udp connections remain established (the main problem)
when connection open and close grow up make some problem for camera
please guide me for this problem
the netstat command output for opened and closed connection is this
output for opened connection:

root@openipc-gk7205v200:~# netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:554 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 144 192.168.1.142:22 192.168.1.99:7206 ESTABLISHED
tcp 0 0 192.168.1.142:22 192.168.1.99:7207 ESTABLISHED
tcp 0 0 192.168.1.142:554 192.168.1.99:7214 ESTABLISHED
tcp 0 0 :::554 :::* LISTEN
tcp 0 0 :::80 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 :::443 :::* LISTEN
udp 0 0 0.0.0.0:56085 0.0.0.0:*
udp 0 0 192.168.1.142:40058 192.168.1.99:13336 ESTABLISHED
udp 0 0 192.168.1.142:40587 192.168.1.99:13338 ESTABLISHED
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 2816 0.0.0.0:59122 0.0.0.0:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 8 [ ] DGRAM 261 /dev/log
unix 2 [ ] DGRAM 677
unix 2 [ ] DGRAM 397
unix 2 [ ] DGRAM 478
unix 2 [ ] DGRAM 391
unix 2 [ ] DGRAM 267
unix 2 [ ] DGRAM 485

output for closed connection:

root@openipc-gk7205v200:# netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:554 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 144 192.168.1.142:22 192.168.1.99:7206 ESTABLISHED
tcp 0 0 192.168.1.142:22 192.168.1.99:7207 ESTABLISHED
tcp 0 0 :::554 :::* LISTEN
tcp 0 0 :::80 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 :::443 :::* LISTEN
udp 0 0 192.168.1.142:40058 192.168.1.99:13336 ESTABLISHED
udp 0 0 192.168.1.142:40587 192.168.1.99:13338 ESTABLISHED
udp 0 0 0.0.0.0:5353 0.0.0.0:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 8 [ ] DGRAM 261 /dev/log
unix 2 [ ] DGRAM 677
unix 2 [ ] DGRAM 397
unix 2 [ ] DGRAM 478
unix 2 [ ] DGRAM 391
unix 2 [ ] DGRAM 267
unix 2 [ ] DGRAM 485
root@openipc-gk7205v200:
#

when i restart majestic udp connections not closed
root@openipc-gk7205v200:# killall -1 majestic
root@openipc-gk7205v200:
# netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:554 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 144 192.168.1.142:22 192.168.1.99:7206 ESTABLISHED
tcp 0 0 192.168.1.142:22 192.168.1.99:7207 ESTABLISHED
tcp 0 0 :::554 :::* LISTEN
tcp 0 0 :::80 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 :::443 :::* LISTEN
tcp 0 0 ::ffff:192.168.1.142:80 ::ffff:192.168.1.41:6357 TIME_WAIT
udp 0 0 192.168.1.142:40058 192.168.1.99:13336 ESTABLISHED
udp 0 0 192.168.1.142:40587 192.168.1.99:13338 ESTABLISHED
udp 0 0 0.0.0.0:5353 0.0.0.0:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 8 [ ] DGRAM 261 /dev/log
unix 2 [ ] DGRAM 677
unix 2 [ ] DGRAM 397
unix 2 [ ] DGRAM 478
unix 2 [ ] DGRAM 391
unix 2 [ ] DGRAM 267
unix 2 [ ] DGRAM 485
root@openipc-gk7205v200:~#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions