# Config parsing (fastouter)

**URL:** <https://www.ruby-forum.com/t/config-parsing-fastouter/242300>\
**Category:** NGINX\
**Created:** [June 12, 2015, 9:29pm UTC](https://www.ruby-forum.com/t/config-parsing-fastouter/242300 "2015-06-12T21:29:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [June 12, 2015, 9:29pm UTC](https://www.ruby-forum.com/t/config-parsing-fastouter/242300/1 "2015-06-12T21:29:21Z")

</div>

I am trying to configure fastrouter through environment variable and  
running into trouble.

1. A blank loop still seems to run… expect that no subscription would  
take place?

[uwsgi]  
…  
fastrouter\_keys=  
fastrouter\_ip=  
fastrouter\_port=

# Subscribe this instance to a fastrouter

for=%(fastrouter\_keys)  
subscribe-to=%(fastrouter\_ip):%(fastrouter\_port):%(\_)  
endfor=

and the log …

subscribing to ::  
send\_subscription()/sendto(): Invalid argument [core/subscription.c line  
665]  
send\_subscription()/sendto(): Invalid argument [core/subscription.c line  
665]  
send\_subscription()/sendto(): Invalid argument [core/subscription.c line  
665]

1. A list of values is treated single?

export FASTROUTER\_KEYS=“a b c”

[uwsgi]  
fastrouter\_keys=$(FASTROUTER\_KEYS)  
fastrouter\_ip=…  
fastrouter\_port=…

# Subscribe this instance to a fastrouter

for=%(fastrouter\_keys)  
subscribe-to=%(fastrouter\_ip):%(fastrouter\_port):%(\_)  
endfor=

And logs on fastrouter

[uwsgi-subscription for pid 5] new pool: a b c (hash key: 3007)  
fastrouter\_1 | [uwsgi-subscription for pid 5] a b c =\> new node:  
172.17.1.37:56481

I was expecting to see three separate subscribes.

Any help appreciated.

---

<div class="post-metadata">

**Author:** ![kristian\_kvilekval](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/97f17d/32.png) [@kristian\_kvilekval](https://www.ruby-forum.com/u/kristian_kvilekval)\
**Post date:** [June 15, 2015, 4:32pm UTC](https://www.ruby-forum.com/t/config-parsing-fastouter/242300/2 "2015-06-15T16:32:33Z")

</div>

Hello!

On Fri, Jun 12, 2015 at 12:28:33PM -0700, kristian kvilekval wrote:

> fastrouter\_port=  
> […]

This looks unrelated to nginx. You may have better luck asking in  
uWSGI mailing lists instead.

–  
Maxim D.

> **[nginx](http://nginx.org/)**
