NGLayout hangs forever on nsIURL::Read() if file is empty

VERIFIED DUPLICATE of bug 1742

Status

()

Core
Networking: File
P2
critical
VERIFIED DUPLICATE of bug 1742
20 years ago
16 years ago

People

(Reporter: jst, Assigned: Gagan)

Tracking

({testcase})

Trunk
x86
Windows NT
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

20 years ago
nsIURL *url;

NS_NewURL(url, "file://C:/foo.bar");

url->Open(...)

url->Read(...)

hangs on Read() if the file C:\foo.bar exists but is empty. I tried looking into
this but I didn't see any obvous errors, I did notice one thing though, the
nsIURL::Read(...) hangs on

  PR_Wait(m_Lock, PR_INTERVAL_NO_TIMEOUT); (nsNetStream.cpp:713)

and the netlibrary does

  LIBNET_UNLOCK_AND_RETURN(XP_ListIsEmpty(net_EntryList) ? 0 : 1);

from what I could se the address of the m_Lock and the lock that is unlocked is
not the same!. I do not know if this information is important or even correct...
(Assignee)

Updated

20 years ago
Status: NEW → ASSIGNED

Comment 1

19 years ago
Setting all current Open Critical and Major to M3

Comment 2

19 years ago
setting paulmac as QA contact for all gagan's bugs (sorry for the spam)

Updated

19 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → DUPLICATE

Comment 3

19 years ago
*** This bug has been marked as a duplicate of 1742 ***

Updated

19 years ago
Status: RESOLVED → VERIFIED

Comment 4

19 years ago
confirmed that it doesn't hang forever on a document that has no data. A good
test, I will put it in my test cases.

Comment 5

19 years ago
confirmed that it doesn't hang forever on a document that has no data. A good
test, I will put it in my test cases.

Comment 6

19 years ago
Changing all Networking Library/Browser bugs to Networking-Core component for
Browser.

Occasionally, Bugzilla will burp and cause Verified bugs to reopen when I do
this in a bulk change.  If this happens, I will fix. ;-)

Comment 7

18 years ago
Bulk move of all Networking-Core (to be deleted component) bugs to new
Networking component.

Updated

16 years ago
Component: Networking → Networking: File
Keywords: testcase
You need to log in before you can comment on or make changes to this bug.