Date: Fri, 23 Dec 2016 03:44:47 +0000 From: Hongjiang Zhang <honzhan@microsoft.com> To: =?utf-8?B?55ub5oWn5Y2O?= <hhsheng@corp.netease.com>, freebsd-net <freebsd-net@freebsd.org> Subject: RE: RE: question about fopen fd limit Message-ID: <CY1PR03MB151796BFAEA5DDB1CD6DB752B5950@CY1PR03MB1517.namprd03.prod.outlook.com> In-Reply-To: <2016122311014089280414@corp.netease.com> References: <2016122223570929089978@corp.netease.com>, <CY1PR03MB1517A33F8F9E0BAC00C2E345B5950@CY1PR03MB1517.namprd03.prod.outlook.com> <2016122311014089280414@corp.netease.com>
next in thread | previous in thread | raw e-mail | index | archive | help
T2suIEkga25vdy4NClRoZXJlIGFyZSB0d28gcG9zc2libGUgc29sdXRpb25zOg0KDQogIDEuICBR dWljayBzb2x1dGlvbiBmb3Igc2hvcnQgdGVybTogbW9kaWZ5IHNob3J0IHRvIGludCBpbiBsaWJj IGJ5IHlvdXJzZWxmLCBidWlsZHdvcmxkIGFuZCBpbnN0YWxsd29ybGQuIFB1c2hpbmcgdG8gbW9k aWZ5IGxpYmMgbWF5IHRha2UgYSBsb25nIHRpbWUsIGVzcGVjaWFsbHkgb25seSBmZXcgcGVvcGxl IGVuY291bnRlciB0aGlzIGlzc3VlLiBZb3XigJlkIGJldHRlciBzZW5kIGVtYWlsIHRvIGZyZWVi c2QtY3VycmVudCB0byBjb25maXJtIHdoZXRoZXIgdGhleSBhY2NlcHQgeW91ciBzdWdnZXN0aW9u Lg0KICAyLiAgV29yayBhcm91bmQ6IFlvdSBjYW4gZmlyc3QgcmVzZXJ2ZSBhIHNlcmllcyBvZiBm ZCBiZWZvcmUgb3BlbmluZyBUQ1AgY29ubmVjdGlvbnMuIEZvciBleGFtcGxlLCBpbnZva2Ugb3Bl bijigJwvZGV2L251bGzigJ0pIGZvciAxMDAwMCB0aW1lcyB0byBnZXQgMTAwMDAgZmRzLiBUaG9z ZSBmZCB2YWx1ZXMgYXJlIHNtYWxsIGVub3VnaCB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BmcmVlYnNkLm9yZzxtYWlsdG86ZnJlZWJzZC1uZXRAZnJlZWJz ZC5vcmc+IG1haWxpbmcgbGlzdA0KaHR0cHM6Ly9uYTAxLnNhZmVsaW5rcy5wcm90ZWN0aW9uLm91 dGxvb2suY29tLz91cmw9aHR0cHMlM0ElMkYlMkZsaXN0cy5mcmVlYnNkLm9yZyUyRm1haWxtYW4l MkZsaXN0aW5mbyUyRmZyZWVic2QtbmV0JmRhdGE9MDIlN0MwMSU3Q2hvbnpoYW4lNDBtaWNyb3Nv ZnQuY29tJTdDNGE5ZGZjY2JjY2Q0NDZiZTJmNGEwOGQ0MmE4MzNmYjAlN0M3MmY5ODhiZjg2ZjE0 MWFmOTFhYjJkN2NkMDExZGI0NyU3QzElN0MwJTdDNjM2MTgwMTkwNTg0NDc4ODkwJnNkYXRhPVBB d0pQNUlYSHkwV0p3eGJWN01CJTJCOHp2S2hlWlVZamhIeDNvaEZSU1BaTSUzRCZyZXNlcnZlZD0w DQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhbnkgbWFpbCB0byAiZnJlZWJzZC1uZXQtdW5zdWJzY3Jp YmVAZnJlZWJzZC5vcmc8bWFpbHRvOmZyZWVic2QtbmV0LXVuc3Vic2NyaWJlQGZyZWVic2Qub3Jn PiINCg==
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CY1PR03MB151796BFAEA5DDB1CD6DB752B5950>