Closed
Bug 418535
Opened 16 years ago
Closed 16 years ago
Make socket attachment to nsSocketTransportService usable from XPCOM
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla1.9beta4
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(2 files, 2 obsolete files)
13.86 KB,
patch
|
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
1.93 KB,
patch
|
Biesinger
:
review+
Biesinger
:
superreview+
|
Details | Diff | Splinter Review |
nsISocketTransportService exposes only a single method of nsSocketTransportService that creates a new transport (with a host and port given as parameters). nsSocketTransportService can also watch already opened sockets but the methods related to this are not exposed in the interfaces. The current consumers use this feature from the global variable gSocketTransportService but it is not accessible to XPCOM components. Instantbird needs an access to these methods to attach the sockets opened by libpurple.
Attachment #304362 -
Flags: superreview?(bzbarsky)
Attachment #304362 -
Flags: review?(cbiesinger)
Comment 1•16 years ago
|
||
I'm not likely to get to this sr in the short term. You may want to try someone else.
Assignee | ||
Updated•16 years ago
|
Attachment #304362 -
Flags: superreview?(bzbarsky) → superreview?(cbiesinger)
Assignee | ||
Comment 2•16 years ago
|
||
Removed the canAttachSocket method from the interface as it doesn't seem needed. attachSocket will return an error if the limit is already reached and then the notifyWhenCanAttachSocket method can be used to get a notification. Calling notifyWhenCanAttachSocket without calling attachSocket first is an acceptable use of the interface so I removed the warning for this case.
Attachment #304362 -
Attachment is obsolete: true
Attachment #304362 -
Flags: superreview?(cbiesinger)
Attachment #304362 -
Flags: review?(cbiesinger)
Assignee | ||
Updated•16 years ago
|
Attachment #305567 -
Flags: superreview?(cbiesinger)
Attachment #305567 -
Flags: review?(cbiesinger)
Comment 3•16 years ago
|
||
Comment on attachment 305567 [details] [diff] [review] patch v2 +%{ C++ remove the space + class nsASocketHandler; + struct PRFileDesc; normally these aren't indented... + * This will fail if the maximum number of sockets is already reached, + * in this case, the notifyWhenCanAttachSocket method should be used. mention the error code here + if (!CanAttachSocket()) { + return NS_ERROR_FAILURE; that's a very generic code. maybe NS_ERROR_NOT_AVAILABLE would be better? (or, maybe, _WOULD_BLOCK?) and - nsASocketHandler is currently in nsSocketTransportService2.h. That's not an exported header. Therefore, please move that class to a new nsASocketHandler.h file in netwerk/base/public and add it to the EXPORTS list in the makefile there. r+sr=biesi with those changes
Attachment #305567 -
Flags: superreview?(cbiesinger)
Attachment #305567 -
Flags: superreview+
Attachment #305567 -
Flags: review?(cbiesinger)
Attachment #305567 -
Flags: review+
Updated•16 years ago
|
Summary: Make nsSocketTransportService usable from XPCOM → Make socket attachment to nsSocketTransportService usable from XPCOM
Assignee | ||
Comment 4•16 years ago
|
||
Attachment #305567 -
Attachment is obsolete: true
Assignee | ||
Updated•16 years ago
|
Attachment #305635 -
Flags: approval1.9?
Comment 5•16 years ago
|
||
Comment on attachment 305635 [details] [diff] [review] patch v3 a=beltzner for 1.9
Attachment #305635 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 6•16 years ago
|
||
Checking in netwerk/base/public/Makefile.in; /cvsroot/mozilla/netwerk/base/public/Makefile.in,v <-- Makefile.in new revision: 1.126; previous revision: 1.125 done RCS file: /cvsroot/mozilla/netwerk/base/public/nsASocketHandler.h,v done Checking in netwerk/base/public/nsASocketHandler.h; /cvsroot/mozilla/netwerk/base/public/nsASocketHandler.h,v <-- nsASocketHandler.h initial revision: 1.1 done Checking in netwerk/base/public/nsISocketTransportService.idl; /cvsroot/mozilla/netwerk/base/public/nsISocketTransportService.idl,v <-- nsISocketTransportService.idl new revision: 1.30; previous revision: 1.29 done Checking in netwerk/base/src/nsSocketTransportService2.cpp; /cvsroot/mozilla/netwerk/base/src/nsSocketTransportService2.cpp,v <-- nsSocketTransportService2.cpp new revision: 1.31; previous revision: 1.30 done Checking in netwerk/base/src/nsSocketTransportService2.h; /cvsroot/mozilla/netwerk/base/src/nsSocketTransportService2.h,v <-- nsSocketTransportService2.h new revision: 1.21; previous revision: 1.20 done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9beta4
Assignee | ||
Comment 7•16 years ago
|
||
Updated•16 years ago
|
Attachment #310329 -
Flags: superreview+
Attachment #310329 -
Flags: review+
Comment 8•16 years ago
|
||
Checking in nsISocketTransportService.idl; /cvsroot/mozilla/netwerk/base/public/nsISocketTransportService.idl,v <-- nsISocketTransportService.idl new revision: 1.31; previous revision: 1.30 done
Updated•14 years ago
|
Blocks: Instantbird
You need to log in
before you can comment on or make changes to this bug.
Description
•