Sending Chunked Connection Times Out

Hi Ben, Thanks for the response.

This is what export_prices looks like

  def export_prices do
    ProductConfig.list_full_sku_indexes()
    |> Stream.map(fn product ->
      return_pricing_export_object(product)
    end)
  end

list_full_sku_indexes looks like this

  def list_full_sku_indexes do
    Repo.all(FullSkuIndex)
  end

The list full sku index query completes and the function starts to work but after awhile it times out.

I found this post How do I avoid DB disconnect on chunked streaming of large amount of data?

After finding this, I updated my dev config to

 http: [port: 8000, protocol_options: [idle_timeout: 5_000_000]],

And now the function works locally. The problem is it still does not work in production.

This is what my prod config looks like, Any ideas why this isnt fixing it?

  url: [host: {:system, "HOST"}, port: 80, protocol_options: [idle_timeout: 5_000_000]],

Again thanks for the help!