Skip to content
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

Fixes #2856

Closed
wants to merge 6 commits into from
Closed

Fixes #2856

wants to merge 6 commits into from

Conversation

alvarofe
Copy link
Contributor

Let's see if I don't break any test

@@ -1211,7 +1211,8 @@ R_API int r_core_serve(RCore *core, RIODesc *file) {
return -1;
if (c == NULL) {
eprintf ("rap: cannot accept\n");
r_socket_close (c);
/*r_socket_close (c);*/
r_socket_free (c);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be always r_socket_free or r_socket_close ? r_socket_close doesn't free the RSock structure and I understand that if it fails the structure should be freed

Copy link
Collaborator

Choose a reason for hiding this comment

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

freeing a socket should close it, but im not sure if this will produce a regression or not. but the correct or expected functionality should be this one.

@radare
Copy link
Collaborator

radare commented Jun 28, 2015

awsum <3 there are some little indentation issues, but meh, this is also happening in other places.

thx

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