{"action":"created","issue":{"url":"https://api.github.com/repos/nats-io/elixir-nats/issues/18","labels_url":"https://api.github.com/repos/nats-io/elixir-nats/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/nats-io/elixir-nats/issues/18/comments","events_url":"https://api.github.com/repos/nats-io/elixir-nats/issues/18/events","html_url":"https://github.com/nats-io/elixir-nats/issues/18","id":129968418,"number":18,"title":"The subscriber example breaks on higher traffic","user":{"login":"mindreframer","id":1232,"avatar_url":"https://avatars.githubusercontent.com/u/1232?v=3","gravatar_id":"","url":"https://api.github.com/users/mindreframer","html_url":"https://github.com/mindreframer","followers_url":"https://api.github.com/users/mindreframer/followers","following_url":"https://api.github.com/users/mindreframer/following{/other_user}","gists_url":"https://api.github.com/users/mindreframer/gists{/gist_id}","starred_url":"https://api.github.com/users/mindreframer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindreframer/subscriptions","organizations_url":"https://api.github.com/users/mindreframer/orgs","repos_url":"https://api.github.com/users/mindreframer/repos","events_url":"https://api.github.com/users/mindreframer/events{/privacy}","received_events_url":"https://api.github.com/users/mindreframer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nats-io/elixir-nats/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"camros","id":12055683,"avatar_url":"https://avatars.githubusercontent.com/u/12055683?v=3","gravatar_id":"","url":"https://api.github.com/users/camros","html_url":"https://github.com/camros","followers_url":"https://api.github.com/users/camros/followers","following_url":"https://api.github.com/users/camros/following{/other_user}","gists_url":"https://api.github.com/users/camros/gists{/gist_id}","starred_url":"https://api.github.com/users/camros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camros/subscriptions","organizations_url":"https://api.github.com/users/camros/orgs","repos_url":"https://api.github.com/users/camros/repos","events_url":"https://api.github.com/users/camros/events{/privacy}","received_events_url":"https://api.github.com/users/camros/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-01-30T10:02:11Z","updated_at":"2016-01-31T06:08:07Z","closed_at":"2016-01-31T06:08:07Z","body":"\r\nI get following error while running examples in iex: \r\nBenchscript throws similar error... \r\n\r\n```elixir \r\n# increased the number of sent messages in publisher example, repeat a couple times...\r\nPub.pub_loop(pid, subject, msg, 100)\r\n```\r\n\r\n```elixir\r\n## the output of subscriber example\r\nreceived NATS message: {:msg, \"elixir.subject\", nil, \"57: this works ;)\"}\r\n\r\n10:55:36.498 [error] NATS: #PID<0.151.0>: 127.0.0.1:4222: : invalid parser result: {:cont, 0, %{lexs: {:tokens, 65, 1, '@', 1, 1, [{:arg, 1, \"elixir.subject\"}, {:msg, 1}], 12, 1}, msg: nil, ps: :verb, size: nil, verb: nil}}\r\n** (EXIT from #PID<0.47.0>) \"NATS err: \\\"invalid parser result: {:cont, 0, %{lexs: {:tokens, 65, 1, '@', 1, 1, [{:arg, 1, \\\\\\\"elixir.subject\\\\\\\"}, {:msg, 1}], 12, 1}, msg: nil, ps: :verb, size: nil, verb: nil}}\\\"\"\r\n\r\n10:55:36.505 [error] GenServer #PID<0.152.0> terminating\r\n** (stop) \"NATS err: \\\"invalid parser result: {:cont, 0, %{lexs: {:tokens, 65, 1, '@', 1, 1, [{:arg, 1, \\\\\\\"elixir.subject\\\\\\\"}, {:msg, 1}], 12, 1}, msg: nil, ps: :verb, size: nil, verb: nil}}\\\"\"\r\n```\r\n\r\n\r\nWhat am I doing wrong? ;) \r\n\r\nOS: Mac 10.11.1\r\n```\r\nelixir -v\r\nErlang/OTP 18 [erts-7.2.1] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]\r\n\r\nElixir 1.2.1\r\n```\r\n\r\nThx! "},"comment":{"url":"https://api.github.com/repos/nats-io/elixir-nats/issues/comments/177407953","html_url":"https://github.com/nats-io/elixir-nats/issues/18#issuecomment-177407953","issue_url":"https://api.github.com/repos/nats-io/elixir-nats/issues/18","id":177407953,"user":{"login":"camros","id":12055683,"avatar_url":"https://avatars.githubusercontent.com/u/12055683?v=3","gravatar_id":"","url":"https://api.github.com/users/camros","html_url":"https://github.com/camros","followers_url":"https://api.github.com/users/camros/followers","following_url":"https://api.github.com/users/camros/following{/other_user}","gists_url":"https://api.github.com/users/camros/gists{/gist_id}","starred_url":"https://api.github.com/users/camros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camros/subscriptions","organizations_url":"https://api.github.com/users/camros/orgs","repos_url":"https://api.github.com/users/camros/repos","events_url":"https://api.github.com/users/camros/events{/privacy}","received_events_url":"https://api.github.com/users/camros/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T06:08:07Z","updated_at":"2016-01-31T06:08:07Z","body":"@mindreframer this should be fixed in PR #17 (merged to master just now). I was able to reproduce and have a test case that covers that now. Can you confirm this is addressed for you? Thanks!"}}