Skip to content

Commit

Permalink
Tentative fix for receive buffer errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuchbinder committed Apr 23, 2012
1 parent b98de1e commit 62eddea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/apr_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,12 @@ create_net_server(apr_pool_t *context, int32_t ofamily, int type, apr_port_t por
}

stat = apr_socket_opt_set(sock, APR_SO_REUSEADDR, 1);
if (stat != APR_SUCCESS)
{
apr_socket_close(sock);
return NULL;
}
stat = apr_socket_opt_set(sock, APR_SO_RCVBUF, 1024000);
if (stat != APR_SUCCESS)
{
apr_socket_close(sock);
Expand Down

0 comments on commit 62eddea

Please sign in to comment.