-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User find #31
User find #31
Conversation
…user id instead of username
…ofile, parse signature user find
…e, update proxy pagination to support next/prev
…ser profile in front end
…is only one record
…if user doesnt want to be shown as active within the past 72 hours
lib/epochtalk_server/bbc_parser.ex
Outdated
use GenServer | ||
require Logger | ||
alias Porcelain.Process, as: Proc | ||
@timeout 10_000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timeout's unreasonably long. should reduce it to a realistic amount
long timeout will hang and back up the queue if there is an issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an example is when empty string is given as input
config/runtime.exs
Outdated
@@ -407,6 +407,16 @@ end | |||
|
|||
##### PROXY REPO CONFIGURATIONS ##### | |||
|
|||
poolboy_config = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can rename this to bbc_parser_config
it's the poolboy config for a specific part of the code;
in the case we add another poolboy managed process, we'll need the extra namespace
lib/epochtalk_server/application.ex
Outdated
@@ -21,6 +21,8 @@ defmodule EpochtalkServer.Application do | |||
EpochtalkServer.Repo, | |||
# Start the Smf repository | |||
EpochtalkServer.SmfRepo, | |||
# Start the BBC Parser | |||
:poolboy.child_spec(:bbc_parser, poolboy_config()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when we call child_spec
here, poolboy_config()
call can be changed to a call to bbc_parse_config()
@@ -15,6 +15,10 @@ function setReasonableValues() | |||
$context['browser']['is_ie5'] = false; | |||
$context['browser']['is_ie5.5'] = false; | |||
|
|||
// Fix for portuguese characters (test: http://localhost:8000/threads/5515847) | |||
$context['utf8'] = true; | |||
$context['server']['complex_preg_chars'] = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
specifically, the poolboy_config for bbc_parser
10 seconds is much too long, we don't want to take up resources for that amount of time. 1 second is fairly long as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
g 👀 d 👌
Poorly named branch, sorry.
This adds: