Skip to content

Conversation

@tm604
Copy link
Contributor

@tm604 tm604 commented Mar 30, 2023

This adds a timeout to the connection attempt, so that we can handle cases where the endpoint is in a bad state (closed, accepting but ignoring traffic, or partially accepting and leaving things in SYN_SENT state).


my $loop = IO::Async::Loop->new;

my $uri = URI->new('postgresql://example@127.0.0.1:5000/empty?password=example-password');
Copy link

@chylli-deriv chylli-deriv Apr 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A question: why put password as a URI parameter? I tried but seems URI::db doesn't support such format. password need to put after user:
https://metacpan.org/pod/URI::db#Format

db:engine:[//[user[:password]@][host][:port]/][dbname][?params][#fragment]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants