Skip to content

Conversation

@laanwj
Copy link
Member

@laanwj laanwj commented Sep 14, 2016

Add a patch that seems to be necessary for compatibilty of libevent 2.0.22 with recent mingw-w64 gcc versions (at least GCC 5.3.1 from Ubuntu 16.04).

Without this patch the Content-Length in the HTTP header ends up as Content-Length: zu, causing communication between the RPC client and server to break down. See discussion in #8653.

Source: https://sourceforge.net/p/levent/bugs/363/

Thanks to @sstone for the suggestion. Hopefully this won't cause regressions with Trusty.

Add a patch that seems to be necessary for compatibilty of libevent
2.0.22 with recent mingw-w64 gcc versions (at least GCC 5.3.1 from Ubuntu
16.04).

Without this patch the Content-Length in the HTTP header ends up as
`Content-Length: zu`, causing communication between the RPC
client and server to break down. See discussion in bitcoin#8653.

Source: https://sourceforge.net/p/levent/bugs/363/

Thanks to @sstone for the suggestion.
@laanwj
Copy link
Member Author

laanwj commented Sep 19, 2016

Hopefully this won't cause regressions with Trusty.

Apparently not. Travis RPC tests still pass.

@laanwj laanwj added this to the 0.14.0 milestone Sep 19, 2016
@theuni
Copy link
Member

theuni commented Sep 19, 2016

ut ACK.

@laanwj
Copy link
Member Author

laanwj commented Sep 29, 2016

For reference this is upstream issue libevent/libevent#326, which was fixed upstream in libevent/libevent@79b69d8 and is part of the 2.1.6 release

@laanwj laanwj merged commit 64047f8 into bitcoin:master Sep 29, 2016
laanwj added a commit that referenced this pull request Sep 29, 2016
64047f8 depends: Add libevent compatibility patch for windows (Wladimir J. van der Laan)
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Jun 17, 2019
fa8f195 Replace remaining fprintf with tfm::format manually (MarcoFalke)
fac03ec scripted-diff: Replace fprintf with tfm::format (MarcoFalke)
fa72a64 tinyformat: Add doc to Bitcoin Core specific strprintf (MarcoFalke)

Pull request description:

  This should be a refactor except in the cases where we use the wrong format specifier [1], in which case this patch is a bug fix.

  [1] : e.g.  depends: Add libevent compatibility patch for windows bitcoin#8730

ACKs for commit fa8f19:
  promag:
    ACK fa8f195. Ideally this should be rebased before merge.
  practicalswift:
    utACK fa8f195
  Empact:
    ACK bitcoin@fa8f195
  laanwj:
    code review and lightly tested ACK fa8f195
  jonatack:
    ACK fa8f195 from light code review, building, and running linter/unit tests/extended functional tests.

Tree-SHA512: 65f648b0bc383e3266a5bdb4ad8c8a1908a719635d49e1cd321b91254be24dbc7e22290370178e29b98ddcb3fec0889de9cbae273c7140abc9793d849534a743
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants