1

Topic: [Python] the Difference in operation of sockets of process and a flow

If I launch  a server script in separate process - it fulfills as it is necessary - accepts connection and fulfills data retrieveds But if I launch the same server in a separate flow nose the test - that under a debugger I see that on  he does not wait the data and quits at once dataless tried  setblocking (1) - does not help... In what there can be an ambush? And it is still interesting - from accepta does not quit after socket closing - and hangs there is a norm?

2

Re: [Python] the Difference in operation of sockets of process and a flow

Hello, The Passenger, you wrote: TP> If I launch  a server script in separate process - it fulfills as it is necessary - accepts connection and fulfills TP> data retrieveds TP> But if I launch the same server in a separate flow nose the test - that under a debugger I see that on  he does not wait the data and quits at once TP> dataless TP> tried  setblocking (1) - does not help... In what there can be an ambush? I do not know, in what a problem. But with  problems did not meet. Probably, tests  all these f-tsii; probably, the socket is used in several flows and begins ... I would suggest to look at the codes of errors after recv. The same errno. TP> and it is still interesting - from accepta does not quit after socket closing - and hangs there is a norm? No, there generally  should be.

3

Re: [Python] the Difference in operation of sockets of process and a flow

Hello, neFormal, you wrote: TP>> tried  setblocking (1) - does not help... In what there can be an ambush? F> I do not know, in what a problem. But with  problems did not meet. F> it is possible, tests  all these f-tsii; probably, the socket is used in several flows and begins ... F> I would suggest to look at the codes of errors after recv. The same errno. Errors are not present - simply quits without date TP>> and it is still interesting - from accepta does not quit after socket closing - and hangs there is a norm? F> is not present, there generally  should be. Well it if them to put... Well the behavior and normal (in docks it is told that after socket closing - the subsequent operations will be  that into the account leaking - not clearly) here can... And here with   not so basically I all on another resolved it. But  it is interesting

4

Re: [Python] the Difference in operation of sockets of process and a flow

Hello, The Passenger, you wrote: delete please a topic that not ... The first connection was closed at once after connection...