Delay in WebRTC Stop Http request to Janus Gateway

I am connecting to Janus VideoRoom using UV4l/WebRTC Janus Gateway Server HTTP requests.

To start the stream , I use the following HTTP request from WebRTC to Janus

curl -s ‘http://192.168.1.83:8090/janus?gateway_url=https://janus.conf.meetecho.com&gateway_root=/janus&room=1234&admin_key=&room_pin=&username=test&token=&proxy_host=&proxy_port=80&proxy_password=&proxy_bypass=&create_room=0&publish=1&vformat=60&hw_vcodec=0&subscribe=0&reconnect=1&action=Start’ > /dev/null

Th STOP request to the Janus server

curl -s ‘http://raspberrypi:8080/janus?action=Stop’ > /dev/null

What I notice is that starting the server is quick and can take < 2seconds, while Stopping the Stream can take between 5 seconds and 40 seconds. Is this normal behaviour or can the STOP request be sped up.

Uv4l is not our project, you should ask them.