|
Meta tags:
description=A sufficiently complex body-writer may not be able to complete writing the body, and the only practical approach is to throw an exception.
Exceptions are normally thrown from body-writers when the socket is closed by the remote peer.
If a Raw response body-writer throws an exception before completing the body the http session will be left out of sync and will hang indefinitely waiting to read the next request. The fix results in the socket being closed and not attempting to read the next request when an error occurs. If a content-length is provided then the network error can be detected by the remote peer, otherwise a truncated body is returned to the client.;
Headings (most frequently used words):
navigation, uh, oh, fix, body, writer, exception, causes, hang, 532, are, footer, you, diff, view, menu, repository, there, no, files, selected, for, viewing, sure, want, to, change, the, base, filter, by, extension,
Text of the page (most frequently used words):
swift (99), file (81), sources (46), xcode (45), the (31), tests (25), open (23), show (23), teststring (22), changes (20), and (20), comments (19), view (18), serverrawresponsetests (17), github (16), desktop (16), delete (16), edit (16), this (14), body (14), renamed (13), without (13), handler (13), let (13), expand (13), line (12), applied (11), httpresponse (11), error (11), server (11), socket (11), that (10), response (10), path (10), isa (10), for (10), you (9), all (9), hidden (9), characters (9), unicode (9), httprequest (8), diff (8), reload (8), loading (8), suggestion (7), cannot (7), suggestions (7), code (7), swiftertestshttprouter (7), swiftertestshttpresponsebody (7), serverthreadingtests (7), swifter (7), iosafetytests (7), pbxbuildfile (7), sign (7), not (6), while (6), from (6), change (6), header (6), func (6), writer (6), number (6), bidirectional (6), mimetypestests (6), down (6), fileref (6), exception (6), security (5), request (5), commit (5), swiftertestshttpparser (5), utf8 (5), xxx (5), string (5), may (5), review (5), learn (5), about (5), pingserver (5), files (5), ab83d32c2919f84500d4d434 (5), pbxfilereference (5), session (5), fix (5), base (5), your (5), can (4), please (4), pull (4), because (4), dohandlertest (4), expecterror (4), should (4), try (4), custom (4), 200 (4), nil (4), statuscode (4), 134 (4), text (4), what (4), more (4), httpparser (4), section (4), lastknownfiletype (4), sourcetree (4), group (4), viewcontroller (4), images (4), xcassets (4), project (4), pbxproj (4), was (4), could (4), httpserverio (4), there (4), load (4), causes (4), hang (4), commits (4), support (4), copilot (4), community (3), navigation (3), add (3), batch (3), one (3), length (3), testerror (3), aborted (3), write (3), uint8 (3), content (3), return (3), raw (3), requestexpectation (3), xctassertequal (3), xctassertnotnil (3), xctassertnil (3), then (3), import (3), original (3), contains (3), interpreted (3), compiled (3), differently (3), than (3), appears (3), below (3), editor (3), reveals (3), additions (3), deletions (3), fileencoding (3), plist (3), resources (3), xcodeproj (3), failed (3), hide (3), whitespace (3), page (3), filter (3), 532 (3), mrstux (3), branch (3), refname (3), httpswift (3), account (3), quality (3), another (3), tab (3), window (3), refresh (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), build (3), action (2), contact (2), status (2), privacy (2), terms (2), footer (2), merge (2), outdated (2), single (2), viewing (2), closed (2), toggle (2), true (2), throw (2), finish (2), catch (2), task (2), endif (2), linux (2), var (2), get (2), super (2), teardown (2), override (2), httpserver (2), setup (2), case (2), class (2), ab83d32d2919f84500d4d434 (2), swiftertestsstringextensions (2), swiftertestswebsocketsession (2), ab83d32f2919f84500d4d434 (2), ab83d32e2919f84500d4d434 (2), begin (2), end (2), sourcecode (2), 7cdab8111be2a1d400c8a977 (2), info (2), 7cdab80f1be2a1d400c8a977 (2), main (2), storyboard (2), 110 (2), connection (2), next (2), will (2), bodywriter (2), out (2), send (2), 130 (2), are (2), selected (2), apply (2), split (2), unified (2), retry (2), jump (2), nbsp (2), extension (2), tree (2), old (2), default (2), tags (2), branches (2), stable (2), issue (2), insights (2), projects (2), actions (2), 108 (2), repository (2), signed (2), with (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), business (2), fixes (2), products (2), secret (2), perform, time, share, personal, information, manage, cookies, docs, 2026, inc, right, now, check, back, later, queued, multi, pending, reviews, has, been, marked, resolved, must, existing, order, create, valid, applying, deleted, lines, supported, only, per, subset, invalid, were, made, annotations, notes, known, trigger, network, failure, count, missing, byte, bounded, testfailedboundedresponseshouldnothang, simulates, being, able, unbounded, testfailedunboundedresponseshouldnothang, normal, testrawresponsewithbodywriter, waitforexpectations, timeout, xctfail, resume, fulfill, data, using, value, forhttpheaderfield, available, ios, macos, tvos, httpurlresponse, else, urlsession, shared, executeasynctask, dispatchqueue, global, async, start, xctestexpectation, expectation, description, handle, quickly, escaping, bool, false, expected, test, pass, instantly, ish, adds, expects, customheader, equal, stop, operating, public, enum, xctestcase, testable, foundationnetworking, xctest, created, stuart, espey, 7b55ec95226e0e4f00042d23, 0c1f3cad2265fc470076b6f5, 7b11ad4b21c9a8a6002f8820, 7ccd87721c660b250068099b, 043660d421fed36900497989, 7c4785e91c71d15600a9fe73, 912, 919, 043660e521fed51100497989, 043660e821fed51900497989, 043660ea21fed51e00497989, 043660e921fed51b00497989, 043660e721fed51600497989, 793, 799, 7b55ec96226e0e4f00042d23, 0c1f3cae2265fc470076b6f5, 043660d521fed36c00497989, 043660ce21fed35500497989, 047f1f02226ab9ad00909b95, xctestmanifests, 043660cd21fed35200497989, 781, 786, 7b55ec94226e0e4f00042d23, 0c1f3cac2265fc470076b6f5, 6a0d4511204e9988000a0726, 0858e7f31d68bb2600491cd1, 429, 433, pbxframeworksbuildphase, 7cdab8101be2a1d400c8a977, xml, folder, assetcatalog, 222, 225, pbxcontaineritemproxy, 7cdab8161be2a1d400c8a977, 7cdab8141be2a1d400c8a977, 7cdab8131be2a1d400c8a977, 7cdab80d1be2a1d400c8a977, delegate, socketconnectionreceived, socketsession, break, ideal, possibly, abruptly, close, remainder, until, gives, never, sync, kept, alive, client, waiting, unable, writing, which, fail, when, attempt, read, again, threw, print, conversations, clear, filters, viewed, types, nov, 2022, 9ad8a89, select, changed, checks, conversation, wants, into, handling, some, removed, timeline, become, sure, want, nothing, found, choose, already, clicking, agree, our, occasionally, related, emails, statement, service, free, its, maintainers, have, question, new, items, wiki, requests, issues, message, dismiss, alert, switched, accounts, appearance, settings, search, pricing, event, talks, workshops, partners, company, forum, events, webinars, blog, resource, connect, premium, advanced, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, small, medium, teams, enterprises, stage, businesses, source, latest, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, automated, work, hosting, collaboration, platform, menu, skip,
|