Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions core/plugins.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ void *uwsgi_load_plugin(int modifier, char *plugin, char *has_option) {
free(plugin_name);
if (plugin_filename)
free(plugin_filename);
if (plugin_handle && dlclose(plugin_handle)) {
uwsgi_error("dlclose()");
}

return NULL;
}
Expand Down
4 changes: 4 additions & 0 deletions core/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ static int create_server_socket(int domain, int type) {
if (setsockopt(serverfd, SOL_SOCKET, SO_REUSEADDR, (const void *) &reuse, sizeof(int)) < 0) {
uwsgi_error("SO_REUSEADDR setsockopt()");
uwsgi_nuclear_blast();
close(serverfd);
return -1;
}
}
Expand All @@ -104,6 +105,7 @@ static int create_server_socket(int domain, int type) {
if (setsockopt(serverfd, SOL_SOCKET, SO_SNDBUF, &sndbuf, sizeof(socklen_t)) < 0) {
uwsgi_error("SO_SNDBUF setsockopt()");
uwsgi_nuclear_blast();
close(serverfd);
return -1;
}
else {
Expand All @@ -116,6 +118,7 @@ static int create_server_socket(int domain, int type) {
if (setsockopt(serverfd, SOL_SOCKET, SO_RCVBUF, &rcvbuf, sizeof(socklen_t)) < 0) {
uwsgi_error("SO_RCVBUF setsockopt()");
uwsgi_nuclear_blast();
close(serverfd);
return -1;
}
else {
Expand All @@ -128,6 +131,7 @@ static int create_server_socket(int domain, int type) {
if (somaxconn > 0 && uwsgi.listen_queue > somaxconn) {
uwsgi_log("Listen queue size is greater than the system max net.core.somaxconn (%li).\n", somaxconn);
uwsgi_nuclear_blast();
close(serverfd);
return -1;
}
#endif
Expand Down