Re: question about fopen fd limit

2016-12-24 Thread Alfred Perlstein
;s Dr Zhang ? nice to meet you ! winson sheng winson sheng From: Hongjiang Zhang Date: 2016-12-23 11:44 To: 盛慧华; freebsd-net Subject: RE: RE: question about fopen fd limit Ok. I know. There are two possible solutions:

RE: RE: question about fopen fd limit

2016-12-23 Thread Hongjiang Zhang via freebsd-net
...@corp.netease.com] Sent: Friday, December 23, 2016 11:02 AM To: Hongjiang Zhang ; freebsd-net Subject: Re: RE: question about fopen fd limit hi all, not map TCP to FILE, you misunderstanding my meaning~ for example, if my server tcp already holds 32000 connection fopen only has 767 fd to

Re: RE: question about fopen fd limit

2016-12-23 Thread 盛慧华
Zhang ? nice to meet you ! winson sheng winson sheng From: Hongjiang Zhang Date: 2016-12-23 11:44 To: 盛慧华; freebsd-net Subject: RE: RE: question about fopen fd limit Ok. I know. There are two pos

RE: question about fopen fd limit

2016-12-22 Thread Hongjiang Zhang via freebsd-net
Why do you need to map TCP fd to FILE? It is difficult to modify FILE structure. If it is possible, let us figure out some new designs to meet your requirement. -Original Message- From: owner-freebsd-...@freebsd.org [mailto:owner-freebsd-...@freebsd.org] On Behalf Of ??? Sent: Thursday

Re: RE: question about fopen fd limit

2016-12-22 Thread 盛慧华
ugh for me, and i don't wanna change a lot of FILE function that take FILE * as its argument ~ Thank you ~~~ winson sheng winson sheng From: Hongjiang Zhang Date: 2016-12-23 10:17 To: 盛慧华; freebsd-net Subject: RE: question about fopen fd limi

Re: question about fopen fd limit

2016-12-22 Thread Anton Yuzhaninov
On 12/22/16 10:57, 盛慧华 wrote: and even in BSD 10 , it seems this short limit still there , but other OS as debian , FILE strucnt's fileno is a int . * Certain members of __sFILE are accessed directly via macros or * inline functions. To preserve ABI compat, these members must not * be di