cb0274f5   
   From: grahn+nntp@snipabacken.se   
      
   On Tue, 25 Aug 2009 02:32:55 -0700 (PDT), David Schwartz   
    wrote:   
   > On Aug 24, 9:07 pm, yawnmoth wrote:   
   >   
   >> > It's not clear why this is causing you a problem. Is the problem that   
   >> > you are not moving data through this connection fast enough? Or is   
   >> > that problem that you are so busy in 'read' and 'write' calls that you   
   >> > can't get other work done that's not related to this connection?   
   >   
   >> It's just one socket - I send a request, get a response, and send   
   >> another request after getting that response. The problem is that one   
   >> response, in particular, is taking an inordinate amount of time.   
   >   
   > So what? Your program has nothing to do but wait for the response.   
   >   
   >> There's another program I have that implements the same protocol but   
   >> it's closed source. That program doesn't have the same slowdowns but   
   >> since the data being sent through the socket is encrypted, I can't   
   >> really see if they're doing anything differently than me.   
   >   
   > Perhaps you are sending the request with two calls to 'send' or   
   > 'write' rather than one?   
      
   More specifically, try to run tcpdump on both programs, so you can see   
   what the difference is, if any, on the pure TCP level. The encrypted   
   protocol on top of TCP is probably offtopic here anyway.   
      
   /Jorgen   
      
   --   
    // Jorgen Grahn O o .   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|