Closed Bug 842887 Opened 11 years ago Closed 11 years ago

update Mozilla's copy of libevent from 1.4.7 to 2.0.21

Categories

(Core :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: jaas, Assigned: jaas)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

We want to use libevent for our new DNS resolver, and in order to do that we need libevent2. This offers much better performance for Windows, and improvements for other platforms as well.
Attached file fix v1.0
This is a big patch, around 5mb. It's mostly just removing the old copy of libevent, adding the new copy, and outside of that one directory it just tweaks a makefile. It includes clear documentation in "README.mozilla".

https://tbpl.mozilla.org/?tree=Try&rev=a35185c8daf4
Attachment #716294 - Flags: review?(chris)
Here is a basic overview of the changes from 1.4.x to 2.0.x:

https://raw.github.com/libevent/libevent/patches-2.0/whatsnew-2.0.txt
this makes libevent: export headers.  Actually compile itself.  Compiles libevent on windows.
This patch is incomplete (on windows at least).
Blocks: 773648
Lets get libevent compiling on Windows in a separate bug.
Attachment #716294 - Attachment is patch: false
Attachment #716294 - Flags: review?(chris) → review?(jones.chris.g)
Any idea when you'll be able to do this review, Chris?
Should be this week, but feel free to ping someone else in the meantime.
Attachment #716294 - Flags: review?(benjamin)
Attachment #717145 - Attachment is patch: true
Attachment #717145 - Attachment mime type: application/octet-stream → text/plain
Comment on attachment 717145 [details] [diff] [review]
patch with libevent different (part of 1.9 set)

I'm a bit leery of exporting the libevent headers. Is there a particular reason we need to export them instead of continuing to use them (via LOCAL_INCLUDES or a global setting) directly from their source-tree location?
Flags: needinfo?(joshmoz)
(In reply to Benjamin Smedberg  [:bsmedberg] from comment #7)

> I'm a bit leery of exporting the libevent headers. Is there a particular
> reason we need to export them instead of continuing to use them (via
> LOCAL_INCLUDES or a global setting) directly from their source-tree location?

That patch is future work, the patch with review requested is the one covered by this bug and it doesn't change how we export headers - it simply updates libevent. We can handle the latter patch that changes header export later, in another bug.
Flags: needinfo?(joshmoz)
Attachment #717145 - Attachment is obsolete: true
Attachment #716294 - Flags: review?(cjones.bugs)
Attachment #716294 - Attachment mime type: text/plain → application/octet-stream
Attachment #716294 - Flags: review?(benjamin) → review+
https://hg.mozilla.org/mozilla-central/rev/71545c41ea4c
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Is ipc/chromium still the best location for this code?
(In reply to :Ms2ger from comment #12)
> Is ipc/chromium still the best location for this code?

Probably better off in a top-level dir once non-ipc code makes use of it, but we can do that in another bug.
No longer depends on: 860885
Blocks: 864013
Depends on: 1331297
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: