rabbitmq / rabbitmq-web-stomp

Provides support for STOMP over WebSockets
Other
89 stars 26 forks source link

Tune keep-alive timeout #21

Closed sega-yarkin closed 9 years ago

sega-yarkin commented 9 years ago

Before the web-stomp plugin we use the nginx and it configured to keeps many keep-alive connections (to save our resources and keep latency low), but when a connection idle near 5 seconds the cowboy close them. How we can change this timeout?

sega-yarkin commented 9 years ago

I found in cowboy's code that it's default timeout get_value(timeout, Opts, 5000). It'll good if we can change this value, as well as change other ProtoOpts parameters, like max_keepalive. Thanks.

michaelklishin commented 9 years ago

@essen I'm closing this since it's a question but do we need to file a proper issue for this?

michaelklishin commented 9 years ago

@sega-yarkin I've mentioned this before: questions belong to the mailing list, not github issues.

sega-yarkin commented 9 years ago

@michaelklishin now we don't have some option in web-stomp plugin to change this behavior, I asked for append new one for that, it's like enhancement for plugin, not only question.

michaelklishin commented 9 years ago

@sega-yarkin I don't see how

How we can change this timeout?

is not a question. Anyway, if @essen believes this is still not possible in master, we'll file a specific issue.

essen commented 9 years ago

There's nothing in the plugin right now to configure Cowboy's behavior. Opened #22.

michaelklishin commented 9 years ago

22 is now resolved, thank you @essen.