# Custom display message when setting MAXCONN in front-end/Listen Block

**URL:** https://discourse.haproxy.org/t/custom-display-message-when-setting-maxconn-in-front-end-listen-block/1382
**Category:** Help!
**Created:** [June 27, 2017, 9:44am UTC](https://discourse.haproxy.org/t/custom-display-message-when-setting-maxconn-in-front-end-listen-block/1382 "2017-06-27T09:44:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dvelan](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dvelan](https://discourse.haproxy.org/u/dvelan)
#### Post date: [June 27, 2017, 9:44am UTC](https://discourse.haproxy.org/t/custom-display-message-when-setting-maxconn-in-front-end-listen-block/1382/1 "2017-06-27T09:44:42Z")

</div>

Team,  
by default, when setting “maxconn” in front-end/listen block, the further connection(\> maxconn) is queued in Linux SYN BACKLOG , and connections are releases once the connected sessions are released.

I am checking if I can display any custom browser message while connections are staying in queue. Is it possible for HAProxy to do this? if Not, any other way , say from Linux layer?

Your help would be much appreciated.

HAProxy 1.6.12  
RHEL 7.2

Regards,  
Vel

---

<div class="post-metadata">

### Author: ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)
#### Post date: [June 27, 2017, 9:59am UTC](https://discourse.haproxy.org/t/custom-display-message-when-setting-maxconn-in-front-end-listen-block/1382/2 "2017-06-27T09:59:49Z")

</div>

I already explained the problem along with a solution to this 10 days ago to you:

> [@Regarding maxconn parameter in backend for connection queueing](http://discourse.haproxy.org/t/regarding-maxconn-parameter-in-backend-for-connection-queueing/1320/8):
>
> If your weblogic logs the users out, when the TCP connection closes, then you can use the configuration I proposed (http-server-close + server maxconn). When it doesn’t, I don’t see how haproxy would be able to know how many sessions are currently allocated in the backend, so there is no way for haproxy to queue. No, connection queueing is done in the backend on the server line. When you specify maxconn in frontends or bind lines, the queueing will happen in the kernel (which you only want w…

Do you have specific question?
