Date: Fri, 23 Dec 2016 11:01:41 +0800 From: =?UTF-8?B?55ub5oWn5Y2O?= <hhsheng@corp.netease.com> To: "Hongjiang Zhang" <honzhan@microsoft.com>, freebsd-net <freebsd-net@freebsd.org> Subject: Re: RE: question about fopen fd limit Message-ID: <2016122311014089280414@corp.netease.com> References: <2016122223570929089978@corp.netease.com>, <CY1PR03MB1517A33F8F9E0BAC00C2E345B5950@CY1PR03MB1517.namprd03.prod.outlook.com>
next in thread | previous in thread | raw e-mail | index | archive | help
aGkgYWxsLA0KDQogIG5vdCBtYXAgIFRDUCB0byBGSUxFLCB5b3UgbWlzdW5kZXJzdGFuZGluZyBt eSBtZWFuaW5nfg0KDQogIGZvciBleGFtcGxlLCBpZiBteSBzZXJ2ZXIgdGNwIGFscmVhZHkgaG9s ZHMgMzIwMDAgY29ubmVjdGlvbg0KICBmb3BlbiBvbmx5IGhhcyA3NjcgZmQgdG8gdXNlDQoNCiAg dGhlIHByb2JsZW0gaGFzIG5vIGJ1c3NpbmVzcyB3aXRoIHRjcCBmZCwgQlVUIGZvcGVuIC4uLg0K DQogIGluIHNvbWUgcGFydGljdWxhciBzaXR1bGF0aW9ucyAsIG15IHNlcnZlciB3aWxsIG9wZW4g MWsrIEZJTEUgLCB0aGF0IHdpbGwgZXhjZWVkIHRoZSBmaWxlbm8gbGltaXQsIGFuZCBvdmVyZmxv dyBvY2N1cg0KICBteSBzZXJ2ZXIgY2FuJ3Qgb3BlbiBhbnkgZmlsZSBtb3JlICx0aGF0J3MgdGhl IHByb2JsZW0gfg0KDQogIHNvIGkgZmVsdCBpZiBic2Qgb2ZmaWNpYWwgY291bGQgY2hhbmdlIEZJ TEUgc3RydWN0J3MgZmlsZW5vIHRvIGEgVU5TSUdORUQgU0hPUlQgdGhhdCBtYXkgYmUgYW4gZWZm ZWNpZW50IGFuZCBjb252ZW5pZW50IHNvbHV0aW9uIGp1c3QgZm9yIG15IGNhc2UgPw0KICBVTlNJ R05FRCBTSE9SVCBmaWxlbm8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5rcy5wcm90ZWN0aW9uLm91dGxvb2suY29tLz91cmw9aHR0 cHMlM0ElMkYlMkZsaXN0cy5mcmVlYnNkLm9yZyUyRm1haWxtYW4lMkZsaXN0aW5mbyUyRmZyZWVi c2QtbmV0JmRhdGE9MDIlN0MwMSU3Q2hvbnpoYW4lNDBtaWNyb3NvZnQuY29tJTdDNGE5ZGZjY2Jj Y2Q0NDZiZTJmNGEwOGQ0MmE4MzNmYjAlN0M3MmY5ODhiZjg2ZjE0MWFmOTFhYjJkN2NkMDExZGI0 NyU3QzElN0MwJTdDNjM2MTgwMTkwNTg0NDc4ODkwJnNkYXRhPVBBd0pQNUlYSHkwV0p3eGJWN01C JTJCOHp2S2hlWlVZamhIeDNvaEZSU1BaTSUzRCZyZXNlcnZlZD0wDQpUbyB1bnN1YnNjcmliZSwg c2VuZCBhbnkgbWFpbCB0byAiZnJlZWJzZC1uZXQtdW5zdWJzY3JpYmVAZnJlZWJzZC5vcmciDQo=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2016122311014089280414>