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

Disable double write buffering in OpenSSL sockets #7460

Merged
merged 1 commit into from
Feb 20, 2019

Conversation

carlhoerberg
Copy link
Contributor

This fixes #7458 and #7456

@asterite
Copy link
Member

I approve this because:

  • it apparently fixes two issues
  • I'm almost sure the code was supposed to match the comment, but it wasn't the case

@carlhoerberg Thank you!

Copy link
Member

@sdogruyol sdogruyol left a comment

Choose a reason for hiding this comment

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

Thank you @carlhoerberg 👍

@ysbaddaden ysbaddaden merged commit 4a5c263 into crystal-lang:master Feb 20, 2019
@ysbaddaden ysbaddaden added this to the 0.28.0 milestone Feb 20, 2019
@asterite
Copy link
Member

I wonder if tests can be included for this. That way this stays working forever.

@carlhoerberg carlhoerberg deleted the patch-1 branch February 20, 2019 09:33
@asterite
Copy link
Member

At least by including some manual specs (which are run before releasing, I think). This is in spec/manual

@carlhoerberg
Copy link
Contributor Author

I don't know if it's reliable for all kind of things related to OpenSSL buffering, but for this case this code triggered it every time: #7456 (comment)

urde-graven pushed a commit to urde-graven/crystal that referenced this pull request Feb 25, 2019
urde-graven pushed a commit to urde-graven/crystal that referenced this pull request Feb 27, 2019
* fixes:
  Foreign exceptions: basic support
  Added support for `.so' libraries, fixed segfault, small bugs
  OptionParser: optional options and arguments shifting
  XML: workaround for bug in libxml2 2.9.9 (crystal-lang#7477)
  Implement resource owner credentials (crystal-lang#7424)
  Implement #annotations (crystal-lang#7326)
  Handle signals in a separate fiber
  Compiler: reactively compute a union's type, and check for missing types
  Compiler: fix as? casting when target doesn't have a type yet
  Compiler: fix as casting when target doesn't have a type yet
  Compiler: give pare error when assigning a constant inside a multiassign
  Format: fix indent of nested array elements (crystal-lang#7450)
  Disable double write buffering in OpenSSL sockets (crystal-lang#7460)
@bcardiff bcardiff added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:networking labels Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:networking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Double buffering in OpenSSL::SSL::Socket
5 participants