Closed
      
        Bug 842887
      
      
        Opened 12 years ago
          Closed 12 years ago
      
        
    
  
update Mozilla's copy of libevent from 1.4.7 to 2.0.21    
    Categories
(Core :: General, defect)
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.
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
|   | ||
| Comment 3•12 years ago
           | ||
this makes libevent: export headers.  Actually compile itself.  Compiles libevent on windows.
This patch is incomplete (on windows at least).
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)
Should be this week, but feel free to ping someone else in the meantime.
        Attachment #716294 -
        Flags: review?(benjamin)
| Updated•12 years ago
           | 
        Attachment #717145 -
        Attachment is patch: true
        Attachment #717145 -
        Attachment mime type: application/octet-stream → text/plain
| Comment 7•12 years ago
           | ||
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?
| Updated•12 years ago
           | 
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)
| Updated•12 years ago
           | 
        Attachment #716294 -
        Attachment mime type: text/plain → application/octet-stream
| Updated•12 years ago
           | 
        Attachment #716294 -
        Flags: review?(benjamin) → review+
| Assignee | ||
| Comment 10•12 years ago
           | ||
pushed to mozilla-inbound
https://hg.mozilla.org/integration/mozilla-inbound/rev/71545c41ea4c
| Comment 11•12 years ago
           | ||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
| Comment 12•12 years ago
           | ||
Is ipc/chromium still the best location for this code?
| Assignee | ||
| Comment 13•12 years ago
           | ||
(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.
          You need to log in
          before you can comment on or make changes to this bug.
        
Description
•