Re: Getting 502 Gateway Timeout for BOSH over HAPRoxy

2016-10-18 Thread Willy Tarreau
Hi Vijaya,

On Mon, Oct 17, 2016 at 05:33:24AM +, Vijayalakshmi Devi A M wrote:
> Hi,
> 
> Our web application uses XMPP for chat. We are using ejabberd xmpp server .
> We have configured xmpp BOSH( http://xmpp.org/extensions/xep-0206.html ) via
> HAProxy. But sometimes haproxy is throwing error with Status Code:504 Gateway
> Time-out. Our application shows error as No 'Access-Control-Allow-Origin'
> header is present on the requested resource. Origin '. But the same request
> initially it works without any error. Can you please guide us on how to
> resolve this issue

It's not very clear, but at least from what I remember, BOSH uses long
connection polling, so if your haproxy timeout is smaller than the server's,
it's normal that unused connections ultimately time out and are logged as
504, and it should be irrelevant to the headers you're using.

Regards,
Willy



Re: Getting 502 Gateway Timeout for BOSH over HAPRoxy

2016-10-17 Thread Igor Cicimov
On 17 Oct 2016 4:35 pm, "Vijayalakshmi Devi A M"  wrote:
>
> Hi,
>
>
>
> Our web application uses XMPP for chat. We are using ejabberd xmpp server
. We have configured xmpp BOSH( http://xmpp.org/extensions/xep-0206.html )
via HAProxy. But sometimes haproxy is throwing error with Status Code:504
Gateway Time-out. Our application shows error as No
'Access-Control-Allow-Origin' header is present on the requested resource.
Origin '. But the same request initially it works without any error. Can
you please guide us on how to resolve this issue
>
>
>
> Regards
>
> Vijaya
>
>

Without any specific info all i can say is google for CORS and haproxy.