# authenticateRTSP return false not close client connection

**URL:** <https://community.wowza.com/t/authenticatertsp-return-false-not-close-client-connection/50190>\
**Category:** Wowza Streaming Engine\
**Created:** [November 21, 2017, 10:26am UTC](https://community.wowza.com/t/authenticatertsp-return-false-not-close-client-connection/50190 "2017-11-21T10:26:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nguyen\_Nguyen4](https://avatars.discourse-cdn.com/v4/letter/n/4da419/32.png) [@nguyen\_Nguyen4](https://community.wowza.com/u/nguyen_Nguyen4)\
**Post date:** [November 21, 2017, 10:26am UTC](https://community.wowza.com/t/authenticatertsp-return-false-not-close-client-connection/50190/1 "2017-11-21T10:26:14Z")

</div>

Hi there!  
I have implements IAuthenticateRTSP with method authenticateRTSP return false. But rtsp client do not close.

```auto
public class RTSPAuth implements IAuthenticateRTSP {
	@Override
	public boolean authenticateRTSP(RTPSession rtspSession, RTSPRequestMessage req, RTSPResponseMessages resp) {
		return false;
	}

}

public class MyRTSPModule extends ModuleBase {
	public void onRTPSessionCreate(RTPSession rtpSession) {
		rtpSession.setAuthenticatePublishHandler(new RTSPAuth());
	}
}

```
