public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Problems with kernel-2.2.19-6.2.7 from RH update for 6.2
@ 2001-08-19 18:01 Denis Perchine
  2001-08-20  2:11 ` Alexey Kuznetsov
  0 siblings, 1 reply; 6+ messages in thread
From: Denis Perchine @ 2001-08-19 18:01 UTC (permalink / raw)
  To: linux-kernel

Hello,

I see quite strange behavior of subj.

socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 40
fcntl(40, F_GETFL)                      = 0x2 (flags O_RDWR)
fcntl(40, F_SETFL, O_RDWR|O_NONBLOCK)   = 0
setsockopt(40, SOL_SOCKET, SO_LINGER, [1], 8) = 0
connect(40, {sin_family=AF_INET, sin_port=htons(2030), 
sin_addr=inet_addr("127.0.0.1")}}, 16) = -1 EINPROGRESS (Operation now in 
progress)
select(41, NULL, [40], NULL, {180, 0})  = 1 (out [40], left {180, 0})
getsockopt(40, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
select(41, [40], NULL, NULL, {180, 0})  = 1 (in [40], left {175, 550000})
ioctl(4, FIONREAD, [0])                 = 0
select(41, [40], NULL, NULL, {180, 0})  = 1 (in [40], left {180, 0})
recv(4, 0x806aa28, 1, 0x4000)           = -1 EAGAIN (Resource temporarily 
unavailable)

As far as you can see select say that socket is writable after connect. This 
mean that connection is completed... But later before read we do select on 
read, and get OK. But recv fails with EAGAIN. This situation is repeated 
constantly. The program stucks in the loop trying to connect, but fails.

Any ideas what can this be?

Maybe comment from Alan, as RH employee?

As a side comment. Server is highly loaded. The program usually works well, 
but if it happend once, it will repeat forever...

-- 
Sincerely Yours,
Denis Perchine

----------------------------------
E-Mail: dyp@perchine.com
HomePage: http://www.perchine.com/dyp/
FidoNet: 2:5000/120.5
----------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-08-23 16:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-19 18:01 Problems with kernel-2.2.19-6.2.7 from RH update for 6.2 Denis Perchine
2001-08-20  2:11 ` Alexey Kuznetsov
2001-08-20 18:52   ` Denis Perchine
2001-08-22  0:53     ` Alexey Kuznetsov
2001-08-23  4:32       ` Denis Perchine
2001-08-23 16:29         ` kuznet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox